Deleted Added
full compact
if_ed_pci.c (15813) if_ed_pci.c (16289)
1/*
2 *
3 * Copyright (c) 1996 Stefan Esser <se@freebsd.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright
10 * notice immediately at the beginning of the file, without modification,
11 * this list of conditions, and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 * 3. Absolutely no warranty of function or purpose is made by the author
16 * Stefan Esser.
17 * 4. Modifications may be freely made to this file if the above conditions
18 * are met.
19 *
1/*
2 *
3 * Copyright (c) 1996 Stefan Esser <se@freebsd.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright
10 * notice immediately at the beginning of the file, without modification,
11 * this list of conditions, and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 * 3. Absolutely no warranty of function or purpose is made by the author
16 * Stefan Esser.
17 * 4. Modifications may be freely made to this file if the above conditions
18 * are met.
19 *
20 * $Id:$
20 * $Id: if_ed_p.c,v 1.1 1996/05/18 17:56:40 se Exp $
21 */
22
23#include <pci.h>
24#if NPCI > 0
25
26#include <sys/param.h>
27#include <sys/systm.h>
28#include <sys/malloc.h>
29#include <sys/kernel.h>
30#include <pci/pcireg.h>
31#include <pci/pcivar.h>
32#include <i386/isa/isa_device.h>
33
34#include <ed.h>
35
36#define PCI_DEVICE_ID_NE2000 0x802910ec
37
21 */
22
23#include <pci.h>
24#if NPCI > 0
25
26#include <sys/param.h>
27#include <sys/systm.h>
28#include <sys/malloc.h>
29#include <sys/kernel.h>
30#include <pci/pcireg.h>
31#include <pci/pcivar.h>
32#include <i386/isa/isa_device.h>
33
34#include <ed.h>
35
36#define PCI_DEVICE_ID_NE2000 0x802910ec
37
38extern void *ed_attach_NE2000_pci __P((int, int));
39
38static char* ed_pci_probe __P((pcici_t tag, pcidi_t type));
39static void ed_pci_attach __P((pcici_t config_id, int unit));
40
41static u_long ed_pci_count = NED;
42
40static char* ed_pci_probe __P((pcici_t tag, pcidi_t type));
41static void ed_pci_attach __P((pcici_t config_id, int unit));
42
43static u_long ed_pci_count = NED;
44
43static void ed_pci_shutdown(void *arg)
44{
45}
46
47static struct pci_device ed_pci_driver = {
48 "ed",
49 ed_pci_probe,
50 ed_pci_attach,
51 &ed_pci_count,
45static struct pci_device ed_pci_driver = {
46 "ed",
47 ed_pci_probe,
48 ed_pci_attach,
49 &ed_pci_count,
52 ed_pci_shutdown,
50 NULL
53};
54
55DATA_SET (pcidevice_set, ed_pci_driver);
56
57static char*
58ed_pci_probe (pcici_t tag, pcidi_t type)
59{
60 switch(type) {

--- 35 unchanged lines hidden ---
51};
52
53DATA_SET (pcidevice_set, ed_pci_driver);
54
55static char*
56ed_pci_probe (pcici_t tag, pcidi_t type)
57{
58 switch(type) {

--- 35 unchanged lines hidden ---