source: branches/backfire/package/mac80211/patches/800-b43-gpio-mask-module-option.patch @ 25966

Last change on this file since 25966 was 25966, checked in by nbd, 5 years ago

mac80211: sync with trunk (as of r25965)

File size: 1.8 KB
  • drivers/net/wireless/b43/b43.h

    a b struct b43_wldev { 
    718718        bool qos_enabled;               /* TRUE, if QoS is used. */ 
    719719        bool hwcrypto_enabled;          /* TRUE, if HW crypto acceleration is enabled. */ 
    720720        bool use_pio;                   /* TRUE if next init should use PIO */ 
     721        int gpiomask;                   /* GPIO LED mask as a module parameter */ 
    721722 
    722723        /* PHY/Radio device. */ 
    723724        struct b43_phy phy; 
  • drivers/net/wireless/b43/main.c

    a b MODULE_FIRMWARE("b43/ucode15.fw"); 
    7575MODULE_FIRMWARE("b43/ucode5.fw"); 
    7676MODULE_FIRMWARE("b43/ucode9.fw"); 
    7777 
     78static int modparam_gpiomask = 0x000F; 
     79module_param_named(gpiomask, modparam_gpiomask, int, 0444); 
     80MODULE_PARM_DESC(gpiomask, 
     81         "GPIO mask for LED control (default 0x000F)"); 
     82 
    7883static int modparam_bad_frames_preempt; 
    7984module_param_named(bad_frames_preempt, modparam_bad_frames_preempt, int, 0444); 
    8085MODULE_PARM_DESC(bad_frames_preempt, 
    static int b43_gpio_init(struct b43_wlde 
    25422547                    & ~B43_MACCTL_GPOUTSMSK); 
    25432548 
    25442549        b43_write16(dev, B43_MMIO_GPIO_MASK, b43_read16(dev, B43_MMIO_GPIO_MASK) 
    2545                     | 0x000F); 
     2550                    | modparam_gpiomask); 
    25462551 
    25472552        mask = 0x0000001F; 
    2548         set = 0x0000000F; 
     2553        set = modparam_gpiomask; 
    25492554        if (dev->dev->bus->chip_id == 0x4301) { 
    25502555                mask |= 0x0060; 
    25512556                set |= 0x0060; 
    static void b43_print_driverinfo(void) 
    51005105        feat_sdio = "S"; 
    51015106#endif 
    51025107        printk(KERN_INFO "Broadcom 43xx driver loaded " 
    5103                "[ Features: %s%s%s%s%s, Firmware-ID: " 
     5108               "[ Features: %s%s%s%s%s, GPIO LED Mask: 0x%04x, Firmware-ID: " 
    51045109               B43_SUPPORTED_FIRMWARE_ID " ]\n", 
    51055110               feat_pci, feat_pcmcia, feat_nphy, 
    5106                feat_leds, feat_sdio); 
     5111               feat_leds, feat_sdio, modparam_gpiomask); 
    51075112} 
    51085113 
    51095114static int __init b43_init(void) 
Note: See TracBrowser for help on using the repository browser.