Rev 3022 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3022 | Rev 4221 | ||
---|---|---|---|
Line 14... | Line 14... | ||
14 | #include <string.h> |
14 | #include <string.h> |
15 | 15 | ||
16 | #include "internal.h" |
16 | #include "internal.h" |
17 | 17 | ||
18 | static struct pci_methods *pci_methods[PCI_ACCESS_MAX] = { |
18 | static struct pci_methods *pci_methods[PCI_ACCESS_MAX] = { |
- | 19 | #ifdef UARCH_ia32 |
|
19 | &pm_intel_conf1, |
20 | &pm_intel_conf1, |
20 | &pm_intel_conf2, |
21 | &pm_intel_conf2, |
- | 22 | #else |
|
- | 23 | 0, |
|
- | 24 | 0, |
|
- | 25 | #endif |
|
- | 26 | ||
- | 27 | #ifdef UARCH_sparc64 |
|
- | 28 | &pm_us2i |
|
- | 29 | #else |
|
- | 30 | 0 |
|
- | 31 | #endif |
|
21 | }; |
32 | }; |
22 | 33 | ||
23 | struct pci_access *pci_alloc(void) |
34 | struct pci_access *pci_alloc(void) |
24 | { |
35 | { |
25 | struct pci_access *a = malloc(sizeof(struct pci_access)); |
36 | struct pci_access *a = malloc(sizeof(struct pci_access)); |