Deleted Added
full compact
32c32
< * $Id: if_rl.c,v 1.2 1998/11/18 21:03:57 wpaul Exp $
---
> * $Id: if_rl.c,v 1.16 1998/12/07 00:16:44 wpaul Exp $
56c56
< * on a doubleword (32-bit) boundary. This means we almost always have to
---
> * on a longword (32-bit) boundary. This means we almost always have to
84,92d83
< *
< * Note: beware of trying to use the Linux RealTek driver as a reference
< * for information about the RealTek chip. It contains several bogosities.
< * It contains definitions for several undocumented registers which it
< * claims are 'required for proper operation' yet it does not use these
< * registers anywhere in the code. It also refers to some undocumented
< * 'Twister tuning codes' which it doesn't use anywhere. It also contains
< * bit definitions for several registers which are totally ignored: magic
< * numbers are used instead, making the code hard to read.
117a109,111
> #include <machine/bus_pio.h>
> #include <machine/bus_memio.h>
> #include <machine/bus.h>
136c130
< "$Id: if_rl.c,v 1.2 1998/11/18 21:03:57 wpaul Exp $";
---
> "$Id: if_rl.c,v 1.16 1998/12/07 00:16:44 wpaul Exp $";
1086c1080,1085
< sc->iobase = pci_conf_read(config_id, RL_PCI_LOIO) & 0xFFFFFFFC;
---
> if (!pci_map_port(config_id, RL_PCI_LOIO,
> (u_int16_t *)&(sc->rl_bhandle))) {
> printf ("rl%d: couldn't map ports\n", unit);
> goto fail;
> }
> sc->rl_btag = I386_BUS_SPACE_IO;
1097c1096,1097
< sc->csr = (volatile caddr_t)vbase;
---
> sc->rl_btag = I386_BUS_SPACE_MEM;
> sc->rl_bhandle = vbase;
1128c1128
< if (rl_did == RT_DEVICEID_8139)
---
> if (rl_did == RT_DEVICEID_8139 || rl_did == ACCTON_DEVICEID_5030)