Fix dell/s1850 broken in r3822, and prepare it for implicit declaration
error patch. Signed-off-by: Corey Osgood <corey.osgood@gmail.com> Acked-by: Corey Osgood <corey.osgood@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3828 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
eb390abb4e
commit
da416f8986
|
@ -1,9 +1,9 @@
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <device/pci.h>
|
|
||||||
#include <device/pci_def.h>
|
#include <device/pci_def.h>
|
||||||
#include <device/pci_ids.h>
|
#include <device/pci_ids.h>
|
||||||
#ifndef __ROMCC__
|
#ifndef __ROMCC__
|
||||||
#include <device/device.h>
|
#include <device/pci.h>
|
||||||
#define PCI_ID(VENDOR_ID, DEVICE_ID) \
|
#define PCI_ID(VENDOR_ID, DEVICE_ID) \
|
||||||
((((DEVICE_ID) & 0xFFFF) << 16) | ((VENDOR_ID) & 0xFFFF))
|
((((DEVICE_ID) & 0xFFFF) << 16) | ((VENDOR_ID) & 0xFFFF))
|
||||||
#define PCI_DEV_INVALID 0
|
#define PCI_DEV_INVALID 0
|
||||||
|
@ -12,6 +12,8 @@ static inline device_t pci_locate_device(unsigned pci_id, device_t from)
|
||||||
{
|
{
|
||||||
return dev_find_device(pci_id >> 16, pci_id & 0xffff, from);
|
return dev_find_device(pci_id >> 16, pci_id & 0xffff, from);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
#include <arch/romcc_io.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void soft_reset(void)
|
void soft_reset(void)
|
||||||
|
|
Loading…
Reference in New Issue