mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-29 16:44:03 +00:00
Move the PCI_DMA_BOUNDARY definition into the pcivar.h.
Reviewed by: jhb Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
5596528930
commit
feb96b46a2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=257070
@ -70,10 +70,6 @@ __FBSDID("$FreeBSD$");
|
||||
#include "pcib_if.h"
|
||||
#include "pci_if.h"
|
||||
|
||||
#if (BUS_SPACE_MAXADDR > 0xFFFFFFFF)
|
||||
#define PCI_DMA_BOUNDARY 0x100000000
|
||||
#endif
|
||||
|
||||
#define PCIR_IS_BIOS(cfg, reg) \
|
||||
(((cfg)->hdrtype == PCIM_HDRTYPE_NORMAL && reg == PCIR_BIOS) || \
|
||||
((cfg)->hdrtype == PCIM_HDRTYPE_BRIDGE && reg == PCIR_BIOS_1))
|
||||
|
@ -499,6 +499,15 @@ void pci_restore_state(device_t dev);
|
||||
void pci_save_state(device_t dev);
|
||||
int pci_set_max_read_req(device_t dev, int size);
|
||||
|
||||
|
||||
#ifdef BUS_SPACE_MAXADDR
|
||||
#if (BUS_SPACE_MAXADDR > 0xFFFFFFFF)
|
||||
#define PCI_DMA_BOUNDARY 0x100000000
|
||||
#else
|
||||
#define PCI_DMA_BOUNDARY 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif /* _SYS_BUS_H_ */
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user