Hi all,
Following is what I encountered hunting down the address in the NetBSD
source where the 5k/xx ethernet hardware address resides. Maybe it is
any help hacking a 5k device driver.
in arch/mips/include/cpuregs.h:
#define MIPS_KSEG1_START 0xa0000000
#define MIPS_PHYS_TO_KSEG1(x) ((unsigned)(x) | MIPS_KSEG1_START)
in arch/pmax/pmax/maxine.h:
#define XINE_PHYS_TC_3_START 0x1c000000 /* TURBOchannel, slot 3 */
#define XINE_PHYS_TC_3_END 0x1fffffff /* 64 Meg, system devices */
#define XINE_SYS_ASIC (XINE_PHYS_TC_3_START + 0x0000000)
in arch/pmax/pmax/machdep.c:
u_long ioasic_base; /* Base address of I/O asic */
ioasic_base = MIPS_PHYS_TO_KSEG1(XINE_SYS_ASIC);
in arch/pmax/pmax/asic.h:
#define IOASIC_SLOT_2_START 0x080000
#define IOASIC_SYS_ETHER_ADDRESS(base) ((base) + IOASIC_SLOT_2_START)
in arch/pmax/tc/asic.c:
ioasic_lance_ether_address()
{
return (u_char *)IOASIC_SYS_ETHER_ADDRESS(ioasic_base);
}
|