A few new PCI register #defines:
- size of config and extended config space - EFI ROM code type number - extended capability list register bits
This commit is contained in:
parent
eb15fbb554
commit
1788ee813d
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pcireg.h,v 1.59 2009/01/16 23:23:34 cegger Exp $ */
|
||||
/* $NetBSD: pcireg.h,v 1.60 2009/08/17 14:11:09 jakllsch Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996, 1999, 2000
|
||||
@ -40,6 +40,13 @@
|
||||
* XXX This is not complete.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Size of each function's configuration space.
|
||||
*/
|
||||
|
||||
#define PCI_CONF_SIZE 0x100
|
||||
#define PCI_EXTCONF_SIZE 0x1000
|
||||
|
||||
/*
|
||||
* Device identification register; contains a vendor ID and a device ID.
|
||||
*/
|
||||
@ -742,6 +749,7 @@ struct pci_rom {
|
||||
#define PCI_ROM_CODE_TYPE_X86 0 /* Intel x86 BIOS */
|
||||
#define PCI_ROM_CODE_TYPE_OFW 1 /* Open Firmware */
|
||||
#define PCI_ROM_CODE_TYPE_HPPA 2 /* HP PA/RISC */
|
||||
#define PCI_ROM_CODE_TYPE_EFI 3 /* EFI Image */
|
||||
|
||||
#define PCI_ROM_INDICATOR_LAST 0x80
|
||||
|
||||
@ -756,4 +764,14 @@ struct pci_rom {
|
||||
#define PCI_RETRY_TIMEOUT_REG 0x40
|
||||
#define PCI_RETRY_TIMEOUT_REG_MASK 0x0000ff00
|
||||
|
||||
/*
|
||||
* PCI-X 2.0 Extended Capability List
|
||||
*/
|
||||
|
||||
#define PCI_EXTCAPLIST_BASE 0x100
|
||||
|
||||
#define PCI_EXTCAPLIST_CAP(ecr) ((ecr) & 0xffff)
|
||||
#define PCI_EXTCAPLIST_VERSION(ecr) (((ecr) >> 16) & 0xf)
|
||||
#define PCI_EXTCAPLIST_NEXT(ecr) (((ecr) >> 20) & 0xfff)
|
||||
|
||||
#endif /* _DEV_PCI_PCIREG_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user