summaryrefslogtreecommitdiffstats
path: root/cpukit/libpci/pci_dev_create.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libpci/pci_dev_create.c')
-rw-r--r--cpukit/libpci/pci_dev_create.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/cpukit/libpci/pci_dev_create.c b/cpukit/libpci/pci_dev_create.c
deleted file mode 100644
index 4e84397214..0000000000
--- a/cpukit/libpci/pci_dev_create.c
+++ /dev/null
@@ -1,33 +0,0 @@
-/* Device allocator helper used by PCI Auto/Read Configuration Library
- *
- * COPYRIGHT (c) 2010 Cobham Gaisler AB.
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.org/license/LICENSE.
- */
-
-#include <rtems.h>
-#include <stdlib.h>
-#include <rtems/bspIo.h>
-
-#include <pci.h>
-#include <pci/cfg.h>
-
-#include "pci_internal.h"
-
-struct pci_dev *pci_dev_create(int isbus)
-{
- void *ptr;
- int size;
-
- if (isbus)
- size = sizeof(struct pci_bus);
- else
- size = sizeof(struct pci_dev);
-
- ptr = calloc(1, size);
- if (!ptr)
- rtems_fatal_error_occurred(RTEMS_NO_MEMORY);
- return ptr;
-}