12f768af7SAlan Cox /* 22f768af7SAlan Cox * Radisys 82600 Embedded chipset Memory Controller kernel module 32f768af7SAlan Cox * (C) 2005 EADS Astrium 42f768af7SAlan Cox * This file may be distributed under the terms of the 52f768af7SAlan Cox * GNU General Public License. 62f768af7SAlan Cox * 72f768af7SAlan Cox * Written by Tim Small <tim@buttersideup.com>, based on work by Thayne 82f768af7SAlan Cox * Harbaugh, Dan Hollis <goemon at anime dot net> and others. 92f768af7SAlan Cox * 102f768af7SAlan Cox * $Id: edac_r82600.c,v 1.1.2.6 2005/10/05 00:43:44 dsp_llnl Exp $ 112f768af7SAlan Cox * 122f768af7SAlan Cox * Written with reference to 82600 High Integration Dual PCI System 132f768af7SAlan Cox * Controller Data Book: 142f768af7SAlan Cox * http://www.radisys.com/files/support_downloads/007-01277-0002.82600DataBook.pdf 152f768af7SAlan Cox * references to this document given in [] 162f768af7SAlan Cox */ 172f768af7SAlan Cox 182f768af7SAlan Cox #include <linux/config.h> 192f768af7SAlan Cox #include <linux/module.h> 202f768af7SAlan Cox #include <linux/init.h> 212f768af7SAlan Cox 222f768af7SAlan Cox #include <linux/pci.h> 232f768af7SAlan Cox #include <linux/pci_ids.h> 242f768af7SAlan Cox 252f768af7SAlan Cox #include <linux/slab.h> 262f768af7SAlan Cox 272f768af7SAlan Cox #include "edac_mc.h" 282f768af7SAlan Cox 292f768af7SAlan Cox /* Radisys say "The 82600 integrates a main memory SDRAM controller that 302f768af7SAlan Cox * supports up to four banks of memory. The four banks can support a mix of 312f768af7SAlan Cox * sizes of 64 bit wide (72 bits with ECC) Synchronous DRAM (SDRAM) DIMMs, 322f768af7SAlan Cox * each of which can be any size from 16MB to 512MB. Both registered (control 332f768af7SAlan Cox * signals buffered) and unbuffered DIMM types are supported. Mixing of 342f768af7SAlan Cox * registered and unbuffered DIMMs as well as mixing of ECC and non-ECC DIMMs 352f768af7SAlan Cox * is not allowed. The 82600 SDRAM interface operates at the same frequency as 362f768af7SAlan Cox * the CPU bus, 66MHz, 100MHz or 133MHz." 372f768af7SAlan Cox */ 382f768af7SAlan Cox 392f768af7SAlan Cox #define R82600_NR_CSROWS 4 402f768af7SAlan Cox #define R82600_NR_CHANS 1 412f768af7SAlan Cox #define R82600_NR_DIMMS 4 422f768af7SAlan Cox 432f768af7SAlan Cox #define R82600_BRIDGE_ID 0x8200 442f768af7SAlan Cox 452f768af7SAlan Cox /* Radisys 82600 register addresses - device 0 function 0 - PCI bridge */ 462f768af7SAlan Cox #define R82600_DRAMC 0x57 /* Various SDRAM related control bits 472f768af7SAlan Cox * all bits are R/W 482f768af7SAlan Cox * 492f768af7SAlan Cox * 7 SDRAM ISA Hole Enable 502f768af7SAlan Cox * 6 Flash Page Mode Enable 512f768af7SAlan Cox * 5 ECC Enable: 1=ECC 0=noECC 522f768af7SAlan Cox * 4 DRAM DIMM Type: 1= 532f768af7SAlan Cox * 3 BIOS Alias Disable 542f768af7SAlan Cox * 2 SDRAM BIOS Flash Write Enable 552f768af7SAlan Cox * 1:0 SDRAM Refresh Rate: 00=Disabled 562f768af7SAlan Cox * 01=7.8usec (256Mbit SDRAMs) 572f768af7SAlan Cox * 10=15.6us 11=125usec 582f768af7SAlan Cox */ 592f768af7SAlan Cox 602f768af7SAlan Cox #define R82600_SDRAMC 0x76 /* "SDRAM Control Register" 612f768af7SAlan Cox * More SDRAM related control bits 622f768af7SAlan Cox * all bits are R/W 632f768af7SAlan Cox * 642f768af7SAlan Cox * 15:8 Reserved. 652f768af7SAlan Cox * 662f768af7SAlan Cox * 7:5 Special SDRAM Mode Select 672f768af7SAlan Cox * 682f768af7SAlan Cox * 4 Force ECC 692f768af7SAlan Cox * 702f768af7SAlan Cox * 1=Drive ECC bits to 0 during 712f768af7SAlan Cox * write cycles (i.e. ECC test mode) 722f768af7SAlan Cox * 732f768af7SAlan Cox * 0=Normal ECC functioning 742f768af7SAlan Cox * 752f768af7SAlan Cox * 3 Enhanced Paging Enable 762f768af7SAlan Cox * 772f768af7SAlan Cox * 2 CAS# Latency 0=3clks 1=2clks 782f768af7SAlan Cox * 792f768af7SAlan Cox * 1 RAS# to CAS# Delay 0=3 1=2 802f768af7SAlan Cox * 812f768af7SAlan Cox * 0 RAS# Precharge 0=3 1=2 822f768af7SAlan Cox */ 832f768af7SAlan Cox 842f768af7SAlan Cox #define R82600_EAP 0x80 /* ECC Error Address Pointer Register 852f768af7SAlan Cox * 862f768af7SAlan Cox * 31 Disable Hardware Scrubbing (RW) 872f768af7SAlan Cox * 0=Scrub on corrected read 882f768af7SAlan Cox * 1=Don't scrub on corrected read 892f768af7SAlan Cox * 902f768af7SAlan Cox * 30:12 Error Address Pointer (RO) 912f768af7SAlan Cox * Upper 19 bits of error address 922f768af7SAlan Cox * 932f768af7SAlan Cox * 11:4 Syndrome Bits (RO) 942f768af7SAlan Cox * 952f768af7SAlan Cox * 3 BSERR# on multibit error (RW) 962f768af7SAlan Cox * 1=enable 0=disable 972f768af7SAlan Cox * 982f768af7SAlan Cox * 2 NMI on Single Bit Eror (RW) 992f768af7SAlan Cox * 1=NMI triggered by SBE n.b. other 1002f768af7SAlan Cox * prerequeists 1012f768af7SAlan Cox * 0=NMI not triggered 1022f768af7SAlan Cox * 1032f768af7SAlan Cox * 1 MBE (R/WC) 1042f768af7SAlan Cox * read 1=MBE at EAP (see above) 1052f768af7SAlan Cox * read 0=no MBE, or SBE occurred first 1062f768af7SAlan Cox * write 1=Clear MBE status (must also 1072f768af7SAlan Cox * clear SBE) 1082f768af7SAlan Cox * write 0=NOP 1092f768af7SAlan Cox * 1102f768af7SAlan Cox * 1 SBE (R/WC) 1112f768af7SAlan Cox * read 1=SBE at EAP (see above) 1122f768af7SAlan Cox * read 0=no SBE, or MBE occurred first 1132f768af7SAlan Cox * write 1=Clear SBE status (must also 1142f768af7SAlan Cox * clear MBE) 1152f768af7SAlan Cox * write 0=NOP 1162f768af7SAlan Cox */ 1172f768af7SAlan Cox 1182f768af7SAlan Cox #define R82600_DRBA 0x60 /* + 0x60..0x63 SDRAM Row Boundry Address 1192f768af7SAlan Cox * Registers 1202f768af7SAlan Cox * 1212f768af7SAlan Cox * 7:0 Address lines 30:24 - upper limit of 1222f768af7SAlan Cox * each row [p57] 1232f768af7SAlan Cox */ 1242f768af7SAlan Cox 1252f768af7SAlan Cox struct r82600_error_info { 1262f768af7SAlan Cox u32 eapr; 1272f768af7SAlan Cox }; 1282f768af7SAlan Cox 1292f768af7SAlan Cox 1302f768af7SAlan Cox static unsigned int disable_hardware_scrub = 0; 1312f768af7SAlan Cox 1322f768af7SAlan Cox 1332f768af7SAlan Cox static void r82600_get_error_info (struct mem_ctl_info *mci, 1342f768af7SAlan Cox struct r82600_error_info *info) 1352f768af7SAlan Cox { 1362f768af7SAlan Cox pci_read_config_dword(mci->pdev, R82600_EAP, &info->eapr); 1372f768af7SAlan Cox 1382f768af7SAlan Cox if (info->eapr & BIT(0)) 1392f768af7SAlan Cox /* Clear error to allow next error to be reported [p.62] */ 1402f768af7SAlan Cox pci_write_bits32(mci->pdev, R82600_EAP, 1412f768af7SAlan Cox ((u32) BIT(0) & (u32) BIT(1)), 1422f768af7SAlan Cox ((u32) BIT(0) & (u32) BIT(1))); 1432f768af7SAlan Cox 1442f768af7SAlan Cox if (info->eapr & BIT(1)) 1452f768af7SAlan Cox /* Clear error to allow next error to be reported [p.62] */ 1462f768af7SAlan Cox pci_write_bits32(mci->pdev, R82600_EAP, 1472f768af7SAlan Cox ((u32) BIT(0) & (u32) BIT(1)), 1482f768af7SAlan Cox ((u32) BIT(0) & (u32) BIT(1))); 1492f768af7SAlan Cox } 1502f768af7SAlan Cox 1512f768af7SAlan Cox 1522f768af7SAlan Cox static int r82600_process_error_info (struct mem_ctl_info *mci, 1532f768af7SAlan Cox struct r82600_error_info *info, int handle_errors) 1542f768af7SAlan Cox { 1552f768af7SAlan Cox int error_found; 1562f768af7SAlan Cox u32 eapaddr, page; 1572f768af7SAlan Cox u32 syndrome; 1582f768af7SAlan Cox 1592f768af7SAlan Cox error_found = 0; 1602f768af7SAlan Cox 1612f768af7SAlan Cox /* bits 30:12 store the upper 19 bits of the 32 bit error address */ 1622f768af7SAlan Cox eapaddr = ((info->eapr >> 12) & 0x7FFF) << 13; 1632f768af7SAlan Cox /* Syndrome in bits 11:4 [p.62] */ 1642f768af7SAlan Cox syndrome = (info->eapr >> 4) & 0xFF; 1652f768af7SAlan Cox 1662f768af7SAlan Cox /* the R82600 reports at less than page * 1672f768af7SAlan Cox * granularity (upper 19 bits only) */ 1682f768af7SAlan Cox page = eapaddr >> PAGE_SHIFT; 1692f768af7SAlan Cox 1702f768af7SAlan Cox if (info->eapr & BIT(0)) { /* CE? */ 1712f768af7SAlan Cox error_found = 1; 1722f768af7SAlan Cox 1732f768af7SAlan Cox if (handle_errors) 1742f768af7SAlan Cox edac_mc_handle_ce( 1752f768af7SAlan Cox mci, page, 0, /* not avail */ 1762f768af7SAlan Cox syndrome, 1772f768af7SAlan Cox edac_mc_find_csrow_by_page(mci, page), 1782f768af7SAlan Cox 0, /* channel */ 1792f768af7SAlan Cox mci->ctl_name); 1802f768af7SAlan Cox } 1812f768af7SAlan Cox 1822f768af7SAlan Cox if (info->eapr & BIT(1)) { /* UE? */ 1832f768af7SAlan Cox error_found = 1; 1842f768af7SAlan Cox 1852f768af7SAlan Cox if (handle_errors) 1862f768af7SAlan Cox /* 82600 doesn't give enough info */ 1872f768af7SAlan Cox edac_mc_handle_ue(mci, page, 0, 1882f768af7SAlan Cox edac_mc_find_csrow_by_page(mci, page), 1892f768af7SAlan Cox mci->ctl_name); 1902f768af7SAlan Cox } 1912f768af7SAlan Cox 1922f768af7SAlan Cox return error_found; 1932f768af7SAlan Cox } 1942f768af7SAlan Cox 1952f768af7SAlan Cox static void r82600_check(struct mem_ctl_info *mci) 1962f768af7SAlan Cox { 1972f768af7SAlan Cox struct r82600_error_info info; 1982f768af7SAlan Cox 1992f768af7SAlan Cox debugf1("MC%d: " __FILE__ ": %s()\n", mci->mc_idx, __func__); 2002f768af7SAlan Cox r82600_get_error_info(mci, &info); 2012f768af7SAlan Cox r82600_process_error_info(mci, &info, 1); 2022f768af7SAlan Cox } 2032f768af7SAlan Cox 2042f768af7SAlan Cox static int r82600_probe1(struct pci_dev *pdev, int dev_idx) 2052f768af7SAlan Cox { 2062f768af7SAlan Cox int rc = -ENODEV; 2072f768af7SAlan Cox int index; 2082f768af7SAlan Cox struct mem_ctl_info *mci = NULL; 2092f768af7SAlan Cox u8 dramcr; 2102f768af7SAlan Cox u32 ecc_on; 2112f768af7SAlan Cox u32 reg_sdram; 2122f768af7SAlan Cox u32 eapr; 2132f768af7SAlan Cox u32 scrub_disabled; 2142f768af7SAlan Cox u32 sdram_refresh_rate; 2152f768af7SAlan Cox u32 row_high_limit_last = 0; 2162f768af7SAlan Cox u32 eap_init_bits; 2172f768af7SAlan Cox 2182f768af7SAlan Cox debugf0("MC: " __FILE__ ": %s()\n", __func__); 2192f768af7SAlan Cox 2202f768af7SAlan Cox 2212f768af7SAlan Cox pci_read_config_byte(pdev, R82600_DRAMC, &dramcr); 2222f768af7SAlan Cox pci_read_config_dword(pdev, R82600_EAP, &eapr); 2232f768af7SAlan Cox 2242f768af7SAlan Cox ecc_on = dramcr & BIT(5); 2252f768af7SAlan Cox reg_sdram = dramcr & BIT(4); 2262f768af7SAlan Cox scrub_disabled = eapr & BIT(31); 2272f768af7SAlan Cox sdram_refresh_rate = dramcr & (BIT(0) | BIT(1)); 2282f768af7SAlan Cox 2292f768af7SAlan Cox debugf2("MC: " __FILE__ ": %s(): sdram refresh rate = %#0x\n", 2302f768af7SAlan Cox __func__, sdram_refresh_rate); 2312f768af7SAlan Cox 2322f768af7SAlan Cox debugf2("MC: " __FILE__ ": %s(): DRAMC register = %#0x\n", __func__, 2332f768af7SAlan Cox dramcr); 2342f768af7SAlan Cox 2352f768af7SAlan Cox mci = edac_mc_alloc(0, R82600_NR_CSROWS, R82600_NR_CHANS); 2362f768af7SAlan Cox 2372f768af7SAlan Cox if (mci == NULL) { 2382f768af7SAlan Cox rc = -ENOMEM; 2392f768af7SAlan Cox goto fail; 2402f768af7SAlan Cox } 2412f768af7SAlan Cox 2422f768af7SAlan Cox debugf0("MC: " __FILE__ ": %s(): mci = %p\n", __func__, mci); 2432f768af7SAlan Cox 2442f768af7SAlan Cox mci->pdev = pdev; 2452f768af7SAlan Cox mci->mtype_cap = MEM_FLAG_RDDR | MEM_FLAG_DDR; 2462f768af7SAlan Cox 2472f768af7SAlan Cox mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_EC | EDAC_FLAG_SECDED; 2482f768af7SAlan Cox /* FIXME try to work out if the chip leads have been * 2492f768af7SAlan Cox * used for COM2 instead on this board? [MA6?] MAYBE: */ 2502f768af7SAlan Cox 2512f768af7SAlan Cox /* On the R82600, the pins for memory bits 72:65 - i.e. the * 2522f768af7SAlan Cox * EC bits are shared with the pins for COM2 (!), so if COM2 * 2532f768af7SAlan Cox * is enabled, we assume COM2 is wired up, and thus no EDAC * 2542f768af7SAlan Cox * is possible. */ 2552f768af7SAlan Cox mci->edac_cap = EDAC_FLAG_NONE | EDAC_FLAG_EC | EDAC_FLAG_SECDED; 2562f768af7SAlan Cox if (ecc_on) { 2572f768af7SAlan Cox if (scrub_disabled) 2582f768af7SAlan Cox debugf3("MC: " __FILE__ ": %s(): mci = %p - " 2592f768af7SAlan Cox "Scrubbing disabled! EAP: %#0x\n", __func__, 2602f768af7SAlan Cox mci, eapr); 2612f768af7SAlan Cox } else 2622f768af7SAlan Cox mci->edac_cap = EDAC_FLAG_NONE; 2632f768af7SAlan Cox 2642f768af7SAlan Cox mci->mod_name = BS_MOD_STR; 2652f768af7SAlan Cox mci->mod_ver = "$Revision: 1.1.2.6 $"; 2662f768af7SAlan Cox mci->ctl_name = "R82600"; 2672f768af7SAlan Cox mci->edac_check = r82600_check; 2682f768af7SAlan Cox mci->ctl_page_to_phys = NULL; 2692f768af7SAlan Cox 2702f768af7SAlan Cox for (index = 0; index < mci->nr_csrows; index++) { 2712f768af7SAlan Cox struct csrow_info *csrow = &mci->csrows[index]; 2722f768af7SAlan Cox u8 drbar; /* sDram Row Boundry Address Register */ 2732f768af7SAlan Cox u32 row_high_limit; 2742f768af7SAlan Cox u32 row_base; 2752f768af7SAlan Cox 2762f768af7SAlan Cox /* find the DRAM Chip Select Base address and mask */ 2772f768af7SAlan Cox pci_read_config_byte(mci->pdev, R82600_DRBA + index, &drbar); 2782f768af7SAlan Cox 2792f768af7SAlan Cox debugf1("MC%d: " __FILE__ ": %s() Row=%d DRBA = %#0x\n", 2802f768af7SAlan Cox mci->mc_idx, __func__, index, drbar); 2812f768af7SAlan Cox 2822f768af7SAlan Cox row_high_limit = ((u32) drbar << 24); 2832f768af7SAlan Cox /* row_high_limit = ((u32)drbar << 24) | 0xffffffUL; */ 2842f768af7SAlan Cox 2852f768af7SAlan Cox debugf1("MC%d: " __FILE__ ": %s() Row=%d, " 2862f768af7SAlan Cox "Boundry Address=%#0x, Last = %#0x \n", 2872f768af7SAlan Cox mci->mc_idx, __func__, index, row_high_limit, 2882f768af7SAlan Cox row_high_limit_last); 2892f768af7SAlan Cox 2902f768af7SAlan Cox /* Empty row [p.57] */ 2912f768af7SAlan Cox if (row_high_limit == row_high_limit_last) 2922f768af7SAlan Cox continue; 2932f768af7SAlan Cox 2942f768af7SAlan Cox row_base = row_high_limit_last; 2952f768af7SAlan Cox 2962f768af7SAlan Cox csrow->first_page = row_base >> PAGE_SHIFT; 2972f768af7SAlan Cox csrow->last_page = (row_high_limit >> PAGE_SHIFT) - 1; 2982f768af7SAlan Cox csrow->nr_pages = csrow->last_page - csrow->first_page + 1; 2992f768af7SAlan Cox /* Error address is top 19 bits - so granularity is * 3002f768af7SAlan Cox * 14 bits */ 3012f768af7SAlan Cox csrow->grain = 1 << 14; 3022f768af7SAlan Cox csrow->mtype = reg_sdram ? MEM_RDDR : MEM_DDR; 3032f768af7SAlan Cox /* FIXME - check that this is unknowable with this chipset */ 3042f768af7SAlan Cox csrow->dtype = DEV_UNKNOWN; 3052f768af7SAlan Cox 3062f768af7SAlan Cox /* Mode is global on 82600 */ 3072f768af7SAlan Cox csrow->edac_mode = ecc_on ? EDAC_SECDED : EDAC_NONE; 3082f768af7SAlan Cox row_high_limit_last = row_high_limit; 3092f768af7SAlan Cox } 3102f768af7SAlan Cox 3112f768af7SAlan Cox /* clear counters */ 3122f768af7SAlan Cox /* FIXME should we? */ 3132f768af7SAlan Cox 3142f768af7SAlan Cox if (edac_mc_add_mc(mci)) { 3152f768af7SAlan Cox debugf3("MC: " __FILE__ 3162f768af7SAlan Cox ": %s(): failed edac_mc_add_mc()\n", __func__); 3172f768af7SAlan Cox goto fail; 3182f768af7SAlan Cox } 3192f768af7SAlan Cox 3202f768af7SAlan Cox /* get this far and it's successful */ 3212f768af7SAlan Cox 3222f768af7SAlan Cox /* Clear error flags to allow next error to be reported [p.62] */ 3232f768af7SAlan Cox /* Test systems seem to always have the UE flag raised on boot */ 3242f768af7SAlan Cox 3252f768af7SAlan Cox eap_init_bits = BIT(0) & BIT(1); 3262f768af7SAlan Cox if (disable_hardware_scrub) { 3272f768af7SAlan Cox eap_init_bits |= BIT(31); 3282f768af7SAlan Cox debugf3("MC: " __FILE__ ": %s(): Disabling Hardware Scrub " 3292f768af7SAlan Cox "(scrub on error)\n", __func__); 3302f768af7SAlan Cox } 3312f768af7SAlan Cox 3322f768af7SAlan Cox pci_write_bits32(mci->pdev, R82600_EAP, eap_init_bits, 3332f768af7SAlan Cox eap_init_bits); 3342f768af7SAlan Cox 3352f768af7SAlan Cox debugf3("MC: " __FILE__ ": %s(): success\n", __func__); 3362f768af7SAlan Cox return 0; 3372f768af7SAlan Cox 3382f768af7SAlan Cox fail: 3392f768af7SAlan Cox if (mci) 3402f768af7SAlan Cox edac_mc_free(mci); 3412f768af7SAlan Cox 3422f768af7SAlan Cox return rc; 3432f768af7SAlan Cox } 3442f768af7SAlan Cox 3452f768af7SAlan Cox /* returns count (>= 0), or negative on error */ 3462f768af7SAlan Cox static int __devinit r82600_init_one(struct pci_dev *pdev, 3472f768af7SAlan Cox const struct pci_device_id *ent) 3482f768af7SAlan Cox { 3492f768af7SAlan Cox debugf0("MC: " __FILE__ ": %s()\n", __func__); 3502f768af7SAlan Cox 3512f768af7SAlan Cox /* don't need to call pci_device_enable() */ 3522f768af7SAlan Cox return r82600_probe1(pdev, ent->driver_data); 3532f768af7SAlan Cox } 3542f768af7SAlan Cox 3552f768af7SAlan Cox 3562f768af7SAlan Cox static void __devexit r82600_remove_one(struct pci_dev *pdev) 3572f768af7SAlan Cox { 3582f768af7SAlan Cox struct mem_ctl_info *mci; 3592f768af7SAlan Cox 3602f768af7SAlan Cox debugf0(__FILE__ ": %s()\n", __func__); 3612f768af7SAlan Cox 3622f768af7SAlan Cox if (((mci = edac_mc_find_mci_by_pdev(pdev)) != NULL) && 3632f768af7SAlan Cox !edac_mc_del_mc(mci)) 3642f768af7SAlan Cox edac_mc_free(mci); 3652f768af7SAlan Cox } 3662f768af7SAlan Cox 3672f768af7SAlan Cox 3682f768af7SAlan Cox static const struct pci_device_id r82600_pci_tbl[] __devinitdata = { 3692f768af7SAlan Cox {PCI_DEVICE(PCI_VENDOR_ID_RADISYS, R82600_BRIDGE_ID)}, 3702f768af7SAlan Cox {0,} /* 0 terminated list. */ 3712f768af7SAlan Cox }; 3722f768af7SAlan Cox 3732f768af7SAlan Cox MODULE_DEVICE_TABLE(pci, r82600_pci_tbl); 3742f768af7SAlan Cox 3752f768af7SAlan Cox 3762f768af7SAlan Cox static struct pci_driver r82600_driver = { 3772f768af7SAlan Cox .name = BS_MOD_STR, 3782f768af7SAlan Cox .probe = r82600_init_one, 3792f768af7SAlan Cox .remove = __devexit_p(r82600_remove_one), 3802f768af7SAlan Cox .id_table = r82600_pci_tbl, 3812f768af7SAlan Cox }; 3822f768af7SAlan Cox 3832f768af7SAlan Cox 384*da9bb1d2SAlan Cox static int __init r82600_init(void) 3852f768af7SAlan Cox { 3862f768af7SAlan Cox return pci_register_driver(&r82600_driver); 3872f768af7SAlan Cox } 3882f768af7SAlan Cox 3892f768af7SAlan Cox 3902f768af7SAlan Cox static void __exit r82600_exit(void) 3912f768af7SAlan Cox { 3922f768af7SAlan Cox pci_unregister_driver(&r82600_driver); 3932f768af7SAlan Cox } 3942f768af7SAlan Cox 3952f768af7SAlan Cox 3962f768af7SAlan Cox module_init(r82600_init); 3972f768af7SAlan Cox module_exit(r82600_exit); 3982f768af7SAlan Cox 3992f768af7SAlan Cox 4002f768af7SAlan Cox MODULE_LICENSE("GPL"); 4012f768af7SAlan Cox MODULE_AUTHOR("Tim Small <tim@buttersideup.com> - WPAD Ltd. " 4022f768af7SAlan Cox "on behalf of EADS Astrium"); 4032f768af7SAlan Cox MODULE_DESCRIPTION("MC support for Radisys 82600 memory controllers"); 4042f768af7SAlan Cox 4052f768af7SAlan Cox module_param(disable_hardware_scrub, bool, 0644); 4062f768af7SAlan Cox MODULE_PARM_DESC(disable_hardware_scrub, 4072f768af7SAlan Cox "If set, disable the chipset's automatic scrub for CEs"); 408