diff options
author | Per Fogelstrom <pefo@cvs.openbsd.org> | 1998-08-06 15:04:07 +0000 |
---|---|---|
committer | Per Fogelstrom <pefo@cvs.openbsd.org> | 1998-08-06 15:04:07 +0000 |
commit | f2eb56e84359146c0b65ee6d6d2a05b37cb15de3 (patch) | |
tree | 680bf4b641876eebf5553230c3f45cc160a5df6b /sys/arch/powerpc/pci/pci_machdep.h | |
parent | 205a31e70c1419a091cf12bb5cdb3693dfecf842 (diff) |
Some small fixes for non ofw systems
Diffstat (limited to 'sys/arch/powerpc/pci/pci_machdep.h')
-rw-r--r-- | sys/arch/powerpc/pci/pci_machdep.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/arch/powerpc/pci/pci_machdep.h b/sys/arch/powerpc/pci/pci_machdep.h index 73cde72ba95..ea5c88e5dfa 100644 --- a/sys/arch/powerpc/pci/pci_machdep.h +++ b/sys/arch/powerpc/pci/pci_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_machdep.h,v 1.3 1998/04/06 20:24:22 pefo Exp $ */ +/* $OpenBSD: pci_machdep.h,v 1.4 1998/08/06 15:04:01 pefo Exp $ */ /* * Copyright (c) 1996 Carnegie-Mellon University. @@ -60,9 +60,11 @@ struct p4e_pci_chipset { void *(*pc_intr_establish) __P((void *, pci_intr_handle_t, int, int (*)(void *), void *, char *)); void (*pc_intr_disestablish) __P((void *, void *)); - int (*pc_ether_hw_addr) __P((u_int8_t *)); + int (*pc_ether_hw_addr) __P((u_int8_t *, u_int8_t, u_int8_t)); }; +#define NEED_PCI_ETHER_HW_ADDR_FUNC /* srom less pci ether adapter */ + /* * Functions provided to machine-independent PCI code. */ @@ -86,8 +88,8 @@ struct p4e_pci_chipset { (*(c)->pc_intr_establish)((c)->pc_intr_v, (ih), (l), (h), (a), (nm)) #define pci_intr_disestablish(c, iv) \ (*(c)->pc_intr_disestablish)((c)->pc_intr_v, (iv)) -#define pci_ether_hw_addr(c, p) \ - (*(c)->pc_ether_hw_addr)((p)) +#define pci_ether_hw_addr(c, p, b, s) \ + (*(c)->pc_ether_hw_addr)((p), (b), (s)) vm_offset_t vtophys __P((void *)); |