From owner-freebsd-hackers Mon Dec 9 11:10:29 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA22464 for hackers-outgoing; Mon, 9 Dec 1996 11:10:29 -0800 (PST) Received: from george.lbl.gov (george-2.lbl.gov [131.243.2.12]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id LAA22457 for ; Mon, 9 Dec 1996 11:10:27 -0800 (PST) Received: (jin@localhost) by george.lbl.gov (8.6.10/8.6.5) id LAA02529 for hackers@freebsd.org; Mon, 9 Dec 1996 11:10:26 -0800 Date: Mon, 9 Dec 1996 11:10:26 -0800 From: "Jin Guojun[ITG]" Message-Id: <199612091910.LAA02529@george.lbl.gov> To: hackers@freebsd.org Subject: Q for loadable network driver Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I have a question in writing a loadable network driver. How is the PCI device table is load into pcidevice_set list -- pcidevice_set.ls_items That is, what is the mechanism to replace these lines : struct pci_device xyz_device = { OEM_DRVNAME, xyz_probe, xyz_attach, &xyz_count, xyz_shutdown }; DATA_SET(pcidevice_set, xyz_device); Thanks, -Jin