Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Broadcom 43xx PCI-SSB bridge module
0003  *
0004  * This technically is a separate PCI driver module, but
0005  * because of its small size we include it in the SSB core
0006  * instead of creating a standalone module.
0007  *
0008  * Copyright 2007  Michael Buesch <m@bues.ch>
0009  *
0010  * Licensed under the GNU/GPL. See COPYING for details.
0011  */
0012 
0013 #include "ssb_private.h"
0014 
0015 #include <linux/pci.h>
0016 #include <linux/module.h>
0017 #include <linux/ssb/ssb.h>
0018 
0019 
0020 static const struct pci_device_id b43_pci_bridge_tbl[] = {
0021     { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4301) },
0022     { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4306) },
0023     { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4307) },
0024     { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4311) },
0025     { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4312) },
0026     { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4315) },
0027     { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4318) },
0028     { PCI_DEVICE(PCI_VENDOR_ID_BCM_GVC,  0x4318) },
0029     { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4319) },
0030     { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4320) },
0031     { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4321) },
0032     { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4322) },
0033     { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 43222) },
0034     { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4324) },
0035     { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4325) },
0036     { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4328) },
0037     { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4329) },
0038     { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x432b) },
0039     { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x432c) },
0040     { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4350) },
0041     { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4351) },
0042     { 0, },
0043 };
0044 MODULE_DEVICE_TABLE(pci, b43_pci_bridge_tbl);
0045 
0046 static struct pci_driver b43_pci_bridge_driver = {
0047     .name = "b43-pci-bridge",
0048     .id_table = b43_pci_bridge_tbl,
0049 };
0050 
0051 
0052 int __init b43_pci_ssb_bridge_init(void)
0053 {
0054     return ssb_pcihost_register(&b43_pci_bridge_driver);
0055 }
0056 
0057 void __exit b43_pci_ssb_bridge_exit(void)
0058 {
0059     ssb_pcihost_unregister(&b43_pci_bridge_driver);
0060 }