mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-05 17:01:53 +02:00
128434cb23
This is the bcm57xx package. I have tested default vlan functions, but I dont have the equipment to test more advanced setups. The default vlan setup seems to be working fine. I also added the activate_gpio parameter which will make the driver activate the switch via gpio before probing for it. I'm not sure which method is best for autoload. For the wrt350n, I need the activate_gpio parameter. But its probably not a good idea to add that to the autoload file. On a system without a bcm57xx switch, isn't it a bad idea to mess with the gpios looking for the switch? Ideally, wouldn't it be best to load the bcm57xx module from broadcom-diag, after it has determined which router its on? I tried using 'request_module' from there, but had no success. For now, I am relying on preinit to load the bcm57xx module with activate_gpio param, after it has failed to load switch_robo and switch_adm. Signed-off-by: Ben Pfountz <netprince (at) vt (dot) edu> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11471 3c298f89-4303-0410-b956-a3cf2f4a3e73
62 lines
2.4 KiB
C
62 lines
2.4 KiB
C
/******************************************************************************/
|
|
/* */
|
|
/* Broadcom BCM5700 Linux Network Driver, Copyright (c) 2000 - 2004 Broadcom */
|
|
/* Corporation. */
|
|
/* All rights reserved. */
|
|
/* */
|
|
/* This program is free software; you can redistribute it and/or modify */
|
|
/* it under the terms of the GNU General Public License as published by */
|
|
/* the Free Software Foundation, located in the file LICENSE. */
|
|
/* */
|
|
/* History: */
|
|
/* 02/25/00 Hav Khauv Initial version. */
|
|
/******************************************************************************/
|
|
|
|
#ifndef BITS_H
|
|
#define BITS_H
|
|
|
|
|
|
|
|
/******************************************************************************/
|
|
/* Bit Mask definitions */
|
|
/******************************************************************************/
|
|
|
|
#define BIT_NONE 0x00
|
|
#define BIT_0 0x01
|
|
#define BIT_1 0x02
|
|
#define BIT_2 0x04
|
|
#define BIT_3 0x08
|
|
#define BIT_4 0x10
|
|
#define BIT_5 0x20
|
|
#define BIT_6 0x40
|
|
#define BIT_7 0x80
|
|
#define BIT_8 0x0100
|
|
#define BIT_9 0x0200
|
|
#define BIT_10 0x0400
|
|
#define BIT_11 0x0800
|
|
#define BIT_12 0x1000
|
|
#define BIT_13 0x2000
|
|
#define BIT_14 0x4000
|
|
#define BIT_15 0x8000
|
|
#define BIT_16 0x010000
|
|
#define BIT_17 0x020000
|
|
#define BIT_18 0x040000
|
|
#define BIT_19 0x080000
|
|
#define BIT_20 0x100000
|
|
#define BIT_21 0x200000
|
|
#define BIT_22 0x400000
|
|
#define BIT_23 0x800000
|
|
#define BIT_24 0x01000000
|
|
#define BIT_25 0x02000000
|
|
#define BIT_26 0x04000000
|
|
#define BIT_27 0x08000000
|
|
#define BIT_28 0x10000000
|
|
#define BIT_29 0x20000000
|
|
#define BIT_30 0x40000000
|
|
#define BIT_31 0x80000000
|
|
|
|
|
|
|
|
#endif /* BITS_H */
|
|
|