if_an.c (198987) | if_an.c (198995) |
---|---|
1/*- 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 24 unchanged lines hidden (view full) --- 33 * Aironet 4500/4800 802.11 PCMCIA/ISA/PCI driver for FreeBSD. 34 * 35 * Written by Bill Paul <wpaul@ctr.columbia.edu> 36 * Electrical Engineering Department 37 * Columbia University, New York City 38 */ 39 40#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 24 unchanged lines hidden (view full) --- 33 * Aironet 4500/4800 802.11 PCMCIA/ISA/PCI driver for FreeBSD. 34 * 35 * Written by Bill Paul <wpaul@ctr.columbia.edu> 36 * Electrical Engineering Department 37 * Columbia University, New York City 38 */ 39 40#include <sys/cdefs.h> |
41__FBSDID("$FreeBSD: head/sys/dev/an/if_an.c 198987 2009-11-06 14:52:37Z jhb $"); | 41__FBSDID("$FreeBSD: head/sys/dev/an/if_an.c 198995 2009-11-06 18:28:13Z jhb $"); |
42 43/* 44 * The Aironet 4500/4800 series cards come in PCMCIA, ISA and PCI form. 45 * This driver supports all three device types (PCI devices are supported 46 * through an extra PCI shim: /sys/dev/an/if_an_pci.c). ISA devices can be 47 * supported either using hard-coded IO port/IRQ settings or via Plug 48 * and Play. The 4500 series devices support 1Mbps and 2Mbps data rates. 49 * The 4800 devices support 1, 2, 5.5 and 11Mbps rates. --- 619 unchanged lines hidden (view full) --- 669 for (i = 0; i < sizeof(an_rid_desc) / 4; i++) 670 CSR_MEM_AUX_WRITE_4(sc, AN_HOST_DESC_OFFSET + i * 4, 671 ((u_int32_t *)(void *)&an_rid_desc)[i]); 672 673 return(0); 674} 675 676int | 42 43/* 44 * The Aironet 4500/4800 series cards come in PCMCIA, ISA and PCI form. 45 * This driver supports all three device types (PCI devices are supported 46 * through an extra PCI shim: /sys/dev/an/if_an_pci.c). ISA devices can be 47 * supported either using hard-coded IO port/IRQ settings or via Plug 48 * and Play. The 4500 series devices support 1Mbps and 2Mbps data rates. 49 * The 4800 devices support 1, 2, 5.5 and 11Mbps rates. --- 619 unchanged lines hidden (view full) --- 669 for (i = 0; i < sizeof(an_rid_desc) / 4; i++) 670 CSR_MEM_AUX_WRITE_4(sc, AN_HOST_DESC_OFFSET + i * 4, 671 ((u_int32_t *)(void *)&an_rid_desc)[i]); 672 673 return(0); 674} 675 676int |
677an_attach(struct an_softc *sc, int unit, int flags) | 677an_attach(struct an_softc *sc, int flags) |
678{ 679 struct ifnet *ifp; 680 int error = EIO; 681 int i, nrate, mword; 682 u_int8_t r; 683 684 ifp = sc->an_ifp = if_alloc(IFT_ETHER); 685 if (ifp == NULL) { --- 3160 unchanged lines hidden --- | 678{ 679 struct ifnet *ifp; 680 int error = EIO; 681 int i, nrate, mword; 682 u_int8_t r; 683 684 ifp = sc->an_ifp = if_alloc(IFT_ETHER); 685 if (ifp == NULL) { --- 3160 unchanged lines hidden --- |