diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-10-09 22:52:54 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-10-10 09:08:23 +0200 |
commit | e599318e912d8836c59d8b5202e3e31a6b8dcae9 (patch) | |
tree | 1172b8b830a1c3236e45c834c2b80e01325ea144 /freebsd/sys/dev/pci/pcivar.h | |
parent | Move files to match FreeBSD layout (diff) | |
download | rtems-libbsd-e599318e912d8836c59d8b5202e3e31a6b8dcae9.tar.bz2 |
Update files to match FreeBSD layout
Add compatibility with Newlib header files. Some FreeBSD header files
are mapped by the translation script:
o rtems/bsd/sys/_types.h
o rtems/bsd/sys/errno.h
o rtems/bsd/sys/lock.h
o rtems/bsd/sys/param.h
o rtems/bsd/sys/resource.h
o rtems/bsd/sys/time.h
o rtems/bsd/sys/timespec.h
o rtems/bsd/sys/types.h
o rtems/bsd/sys/unistd.h
It is now possible to include <sys/socket.h> directly for example.
Generate one Makefile which builds everything including tests.
Diffstat (limited to 'freebsd/sys/dev/pci/pcivar.h')
-rw-r--r-- | freebsd/sys/dev/pci/pcivar.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/freebsd/sys/dev/pci/pcivar.h b/freebsd/sys/dev/pci/pcivar.h index a095db6d..8e2da638 100644 --- a/freebsd/sys/dev/pci/pcivar.h +++ b/freebsd/sys/dev/pci/pcivar.h @@ -27,10 +27,10 @@ * */ -#ifndef _PCIVAR_HH_ -#define _PCIVAR_HH_ +#ifndef _PCIVAR_H_ +#define _PCIVAR_H_ -#include <freebsd/sys/queue.h> +#include <sys/queue.h> /* some PCI bus constants */ #define PCI_MAXMAPS_0 6 /* max. no. of memory/port maps */ @@ -198,7 +198,7 @@ typedef struct { extern uint32_t pci_numdevs; /* Only if the prerequisites are present */ -#if defined(_SYS_BUS_HH_) && defined(_SYS_PCIIO_HH_) +#if defined(_SYS_BUS_H_) && defined(_SYS_PCIIO_H_) struct pci_devinfo { STAILQ_ENTRY(pci_devinfo) pci_links; struct resource_list resources; @@ -207,9 +207,9 @@ struct pci_devinfo { }; #endif -#ifdef _SYS_BUS_HH_ +#ifdef _SYS_BUS_H_ -#include <freebsd/local/pci_if.h> +#include <rtems/bsd/local/pci_if.h> enum pci_device_ivars { PCI_IVAR_SUBVENDOR, @@ -460,7 +460,7 @@ void pci_ht_map_msi(device_t dev, uint64_t addr); int pci_get_max_read_req(device_t dev); int pci_set_max_read_req(device_t dev, int size); -#endif /* _SYS_BUS_HH_ */ +#endif /* _SYS_BUS_H_ */ /* * cdev switch for control device, initialised in generic PCI code @@ -475,4 +475,4 @@ STAILQ_HEAD(devlist, pci_devinfo); extern struct devlist pci_devq; extern uint32_t pci_generation; -#endif /* _PCIVAR_HH_ */ +#endif /* _PCIVAR_H_ */ |