Deleted Added
full compact
if_wi_pci.c (93611) if_wi_pci.c (93733)
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

--- 52 unchanged lines hidden (view full) ---

61#include <dev/wi/if_wavelan_ieee.h>
62#include <dev/wi/if_wivar.h>
63#include <dev/wi/if_wireg.h>
64
65#include "card_if.h"
66
67#if !defined(lint)
68static const char rcsid[] =
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

--- 52 unchanged lines hidden (view full) ---

61#include <dev/wi/if_wavelan_ieee.h>
62#include <dev/wi/if_wivar.h>
63#include <dev/wi/if_wireg.h>
64
65#include "card_if.h"
66
67#if !defined(lint)
68static const char rcsid[] =
69 "$FreeBSD: head/sys/dev/wi/if_wi_pci.c 93611 2002-04-02 02:38:35Z imp $";
69 "$FreeBSD: head/sys/dev/wi/if_wi_pci.c 93733 2002-04-03 19:44:17Z imp $";
70#endif
71
72static int wi_pci_probe(device_t);
73static int wi_pci_attach(device_t);
74
75static device_method_t wi_pci_methods[] = {
76 /* Device interface */
77 DEVMETHOD(device_probe, wi_pci_probe),

--- 32 unchanged lines hidden (view full) ---

110{
111 struct wi_softc *sc;
112 int i;
113
114 sc = device_get_softc(dev);
115 for(i=0; pci_ids[i].vendor != 0; i++) {
116 if ((pci_get_vendor(dev) == pci_ids[i].vendor) &&
117 (pci_get_device(dev) == pci_ids[i].device)) {
70#endif
71
72static int wi_pci_probe(device_t);
73static int wi_pci_attach(device_t);
74
75static device_method_t wi_pci_methods[] = {
76 /* Device interface */
77 DEVMETHOD(device_probe, wi_pci_probe),

--- 32 unchanged lines hidden (view full) ---

110{
111 struct wi_softc *sc;
112 int i;
113
114 sc = device_get_softc(dev);
115 for(i=0; pci_ids[i].vendor != 0; i++) {
116 if ((pci_get_vendor(dev) == pci_ids[i].vendor) &&
117 (pci_get_device(dev) == pci_ids[i].device)) {
118 sc->wi_prism2 = 1;
119 sc->wi_bus_type = pci_ids[i].bus_type;
120 device_set_desc(dev, pci_ids[i].desc);
121 return (0);
122 }
123 }
124 return(ENXIO);
125}
126

--- 109 unchanged lines hidden ---
118 sc->wi_bus_type = pci_ids[i].bus_type;
119 device_set_desc(dev, pci_ids[i].desc);
120 return (0);
121 }
122 }
123 return(ENXIO);
124}
125

--- 109 unchanged lines hidden ---