Fix disordering of pccarddevs.h noticed by bde. Also remove a few

redundant includes and fix some of the include disordering.

Submitted by: bde
This commit is contained in:
Warner Losh 2004-05-27 03:49:45 +00:00
parent 54c9d8aabc
commit 2e31e339d1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129764
18 changed files with 51 additions and 85 deletions

View File

@ -39,9 +39,9 @@ __FBSDID("$FreeBSD$");
#include <dev/aic/aicvar.h>
#include <dev/pccard/pccardvar.h>
#include "pccarddevs.h"
#include "card_if.h"
#include "pccarddevs.h"
struct aic_pccard_softc {
struct aic_softc sc_aic;

View File

@ -66,13 +66,14 @@ __FBSDID("$FreeBSD$");
#include <net/if_types.h>
#include <net/if_media.h>
#include <dev/pccard/pccardvar.h>
#include "pccarddevs.h"
#include "card_if.h"
#include <dev/an/if_aironet_ieee.h>
#include <dev/an/if_anreg.h>
#include <dev/pccard/pccardvar.h>
#include "pccarddevs.h"
#include "card_if.h"
/*
* Support for PCMCIA cards.
*/

View File

@ -45,10 +45,11 @@ __FBSDID("$FreeBSD$");
#include <sys/rman.h>
#include <dev/ata/ata-all.h>
#include <dev/pccard/pccard_cis.h>
#include "pccarddevs.h"
#include <dev/pccard/pccardreg.h>
#include <dev/pccard/pccardvar.h>
#include "pccarddevs.h"
static const struct pccard_product ata_pccard_products[] = {
PCMCIA_CARD(FREECOM, PCCARDIDE, 0),
PCMCIA_CARD(EXP, EXPMULTIMEDIA, 0),

View File

@ -51,8 +51,9 @@ __FBSDID("$FreeBSD$");
#include <dev/awi/awivar.h>
#include <dev/pccard/pccardvar.h>
#include "pccarddevs.h"
#include "card_if.h"
#include "pccarddevs.h"
struct awi_pccard_softc {
struct awi_softc sc_awi;

View File

@ -45,9 +45,9 @@ __FBSDID("$FreeBSD$");
#include <dev/cs/if_csvar.h>
#include <dev/cs/if_csreg.h>
#include <dev/pccard/pccardvar.h>
#include "pccarddevs.h"
#include "card_if.h"
#include "pccarddevs.h"
static const struct pccard_product cs_pccard_products[] = {
PCMCIA_CARD(IBM, ETHERJET, 0),

View File

@ -51,7 +51,6 @@
#include <dev/ed/if_edreg.h>
#include <dev/ed/if_edvar.h>
#include <dev/pccard/pccardvar.h>
#include "pccarddevs.h"
#ifndef ED_NO_MIIBUS
#include <dev/mii/mii.h>
#include <dev/mii/miivar.h>
@ -61,7 +60,10 @@
#ifndef ED_NO_MIIBUS
/* "device miibus" required. See GENERIC if you get errors here. */
#include "miibus_if.h"
#endif
#include "pccarddevs.h"
#ifndef ED_NO_MIIBUS
MODULE_DEPEND(ed, miibus, 1, 1, 1);
#endif
MODULE_DEPEND(ed, ether, 1, 1, 1);

View File

@ -56,9 +56,9 @@ __FBSDID("$FreeBSD$");
#include <dev/ep/if_epvar.h>
#include <dev/pccard/pccardvar.h>
#include "pccarddevs.h"
#include "card_if.h"
#include "pccarddevs.h"
static const char *ep_pccard_identify(u_short id);

View File

@ -44,11 +44,11 @@ __FBSDID("$FreeBSD$");
#include <net/if_arp.h>
#include <net/if_media.h>
#include <dev/ex/if_exreg.h>
#include <dev/ex/if_exvar.h>
#include <dev/pccard/pccardvar.h>
#include "pccarddevs.h"
static const struct pccard_product ex_pccard_products[] = {

View File

@ -47,9 +47,9 @@ __FBSDID("$FreeBSD$");
#include <dev/fe/if_fevar.h>
#include <dev/pccard/pccardvar.h>
#include "pccarddevs.h"
#include "card_if.h"
#include <pccard/cardinfo.h>
#include "pccarddevs.h"
/*
* PC-Card (PCMCIA) specific code.

View File

@ -40,8 +40,8 @@ __FBSDID("$FreeBSD$");
#include <sys/rman.h>
#include <dev/joy/joyvar.h>
#include <dev/pccard/pccardreg.h>
#include <dev/pccard/pccardvar.h>
#include "pccarddevs.h"
static int

View File

@ -40,17 +40,19 @@
__FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/malloc.h>
#include <sys/errno.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/systm.h>
#include <machine/bus.h>
#include <machine/bus_pio.h>
#include <machine/resource.h>
#include <sys/rman.h>
#include <compat/netbsd/dvcfg.h>
#include <sys/device_port.h>
#include "pccarddevs.h"
#include <dev/pccard/pccardvar.h>
#include <cam/scsi/scsi_low.h>
@ -63,13 +65,8 @@ __FBSDID("$FreeBSD$");
#define KME_KXLC004_01 0x100
#define OFFSET_KME_KXLC004_01 0x10
#include <sys/kernel.h>
#include <sys/module.h>
#if !defined(__FreeBSD__) || __FreeBSD_version < 500014
#include <sys/select.h>
#endif
#include <pccard/cardinfo.h>
#include <pccard/slot.h>
#include "pccarddevs.h"
static int ncvprobe(DEVPORT_PDEVICE devi);
static int ncvattach(DEVPORT_PDEVICE devi);

View File

@ -38,18 +38,19 @@
__FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/malloc.h>
#include <sys/bus.h>
#include <sys/errno.h>
#include <vm/vm.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/systm.h>
#include <machine/bus.h>
#include <machine/resource.h>
#include <sys/rman.h>
#include <compat/netbsd/dvcfg.h>
#include <sys/device_port.h>
#include "pccarddevs.h"
#include <dev/pccard/pccardvar.h>
#include <cam/scsi/scsi_low.h>
@ -60,13 +61,7 @@ __FBSDID("$FreeBSD$");
#define NSP_HOSTID 7
#include <sys/kernel.h>
#include <sys/module.h>
#if !defined(__FreeBSD__) || __FreeBSD_version < 500014
#include <sys/select.h>
#endif
#include <pccard/cardinfo.h>
#include <pccard/slot.h>
#include "pccarddevs.h"
#define PIO_MODE 0x100 /* pd_flags */

View File

@ -41,12 +41,12 @@ __FBSDID("$FreeBSD$");
#include <sys/timepps.h>
#include <dev/pccard/pccard_cis.h>
#include "pccarddevs.h"
#include <dev/pccard/pccardreg.h>
#include <dev/pccard/pccardvar.h>
#include <dev/sio/siovar.h>
#include "pccarddevs.h"
static int sio_pccard_attach(device_t dev);
static int sio_pccard_match(device_t self);
static int sio_pccard_probe(device_t dev);

View File

@ -33,25 +33,20 @@
__FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/bus.h>
#include <sys/kernel.h>
#include <sys/socket.h>
#include <sys/systm.h>
#include <sys/module.h>
#include <sys/bus.h>
#include <machine/bus.h>
#include <machine/resource.h>
#include <net/ethernet.h>
#include <net/if.h>
#include <net/if_arp.h>
#include <dev/sn/if_snvar.h>
#include <dev/pccard/pccardvar.h>
#include "pccarddevs.h"
#include <dev/sn/if_snvar.h>
#include "card_if.h"
#include "pccarddevs.h"
static const struct pccard_product sn_pccard_products[] = {
PCMCIA_CARD(DSPSI, XJACK, 0),

View File

@ -42,9 +42,11 @@
__FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/malloc.h>
#include <sys/errno.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/module.h>
#include <sys/systm.h>
#include <machine/bus.h>
#include <machine/bus_pio.h>
@ -52,7 +54,6 @@ __FBSDID("$FreeBSD$");
#include <sys/device_port.h>
#include "pccarddevs.h"
#include <dev/pccard/pccardvar.h>
#include <cam/scsi/scsi_low.h>
@ -62,13 +63,7 @@ __FBSDID("$FreeBSD$");
#include <dev/stg/tmc18c30var.h>
#include <dev/stg/tmc18c30.h>
#include <sys/kernel.h>
#include <sys/module.h>
#if !defined(__FreeBSD__) || __FreeBSD_version < 500014
#include <sys/select.h>
#endif
#include <pccard/cardinfo.h>
#include <pccard/slot.h>
#include "pccarddevs.h"
static const struct pccard_product stg_products[] = {
PCMCIA_CARD(FUTUREDOMAIN, SCSI2GO, 0),

View File

@ -36,13 +36,13 @@ __FBSDID("$FreeBSD$");
#include <machine/resource.h>
#include <dev/pccard/pccard_cis.h>
#include "pccarddevs.h"
#include <dev/pccard/pccardreg.h>
#include <dev/pccard/pccardvar.h>
#include <dev/uart/uart.h>
#include <dev/uart/uart_bus.h>
#include "pccarddevs.h"
static int uart_pccard_match(device_t self);
static int uart_pccard_probe(device_t dev);

View File

@ -65,9 +65,6 @@ __FBSDID("$FreeBSD$");
#include <net80211/ieee80211_radiotap.h>
#include <dev/pccard/pccardvar.h>
#if __FreeBSD_version >= 500000
#include "pccarddevs.h"
#endif
#include <dev/wi/if_wavelan_ieee.h>
#include <dev/wi/if_wireg.h>
@ -77,22 +74,11 @@ __FBSDID("$FreeBSD$");
#endif
#include "card_if.h"
#include "pccarddevs.h"
static int wi_pccard_probe(device_t);
static int wi_pccard_attach(device_t);
#if __FreeBSD_version < 500000
static device_method_t wi_pccard_methods[] = {
/* Device interface */
DEVMETHOD(device_probe, wi_pccard_probe),
DEVMETHOD(device_attach, wi_pccard_attach),
DEVMETHOD(device_detach, wi_detach),
DEVMETHOD(device_shutdown, wi_shutdown),
{ 0, 0 }
};
#else
static int wi_pccard_match(device_t);
static device_method_t wi_pccard_methods[] = {
@ -110,8 +96,6 @@ static device_method_t wi_pccard_methods[] = {
{ 0, 0 }
};
#endif
static driver_t wi_pccard_driver = {
"wi",
wi_pccard_methods,
@ -121,7 +105,6 @@ static driver_t wi_pccard_driver = {
DRIVER_MODULE(wi, pccard, wi_pccard_driver, wi_devclass, 0, 0);
MODULE_DEPEND(wi, wlan, 1, 1, 1);
#if __FreeBSD_version >= 500000
static const struct pccard_product wi_pccard_products[] = {
PCMCIA_CARD(3COM, 3CRWE737A, 0),
PCMCIA_CARD(3COM, 3CRWE777A, 0),
@ -188,7 +171,6 @@ wi_pccard_match(dev)
}
return (ENXIO);
}
#endif
static int
wi_pccard_probe(dev)
@ -231,7 +213,6 @@ wi_pccard_attach(device_t dev)
return (error);
}
#if __FreeBSD_version > 500000
/*
* The cute little Symbol LA4100-series CF cards need to have
* code downloaded to them.
@ -253,7 +234,6 @@ wi_pccard_attach(device_t dev)
return (ENXIO);
#endif
}
#endif
retval = wi_attach(dev);
if (retval != 0)
wi_free(dev);

View File

@ -30,12 +30,10 @@ __FBSDID("$FreeBSD$");
/* xe pccard interface driver */
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/bus.h>
#include <sys/kernel.h>
#include <sys/socket.h>
#include <sys/module.h>
#include <sys/bus.h>
#include <sys/systm.h>
#include <machine/bus.h>
#include <machine/resource.h>
@ -52,9 +50,10 @@ __FBSDID("$FreeBSD$");
#include <dev/xe/if_xevar.h>
#include <dev/pccard/pccardvar.h>
#include "pccarddevs.h"
#include <dev/pccard/pccard_cis.h>
#include "card_if.h"
#include "pccarddevs.h"
/*
* Debug logging levels - set with hw.xe.debug sysctl