Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
867240f7
Commit
867240f7
authored
Jul 03, 2008
by
Krzysztof Hałasa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WAN: Use u32 type instead of u_int32_t in LMC driver.
Signed-off-by:
Krzysztof Hałasa
<
khc@pm.waw.pl
>
parent
d507911c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
139 additions
and
143 deletions
+139
-143
drivers/net/wan/lmc/lmc.h
drivers/net/wan/lmc/lmc.h
+5
-6
drivers/net/wan/lmc/lmc_debug.c
drivers/net/wan/lmc/lmc_debug.c
+3
-4
drivers/net/wan/lmc/lmc_debug.h
drivers/net/wan/lmc/lmc_debug.h
+3
-3
drivers/net/wan/lmc/lmc_main.c
drivers/net/wan/lmc/lmc_main.c
+8
-7
drivers/net/wan/lmc/lmc_media.c
drivers/net/wan/lmc/lmc_media.c
+3
-6
drivers/net/wan/lmc/lmc_var.h
drivers/net/wan/lmc/lmc_var.h
+117
-117
No files found.
drivers/net/wan/lmc/lmc.h
View file @
867240f7
...
...
@@ -11,12 +11,12 @@ unsigned lmc_mii_readreg(lmc_softc_t * const sc, unsigned
devaddr
,
unsigned
regno
);
void
lmc_mii_writereg
(
lmc_softc_t
*
const
sc
,
unsigned
devaddr
,
unsigned
regno
,
unsigned
data
);
void
lmc_led_on
(
lmc_softc_t
*
const
,
u
_int32_t
);
void
lmc_led_off
(
lmc_softc_t
*
const
,
u
_int32_t
);
void
lmc_led_on
(
lmc_softc_t
*
const
,
u
32
);
void
lmc_led_off
(
lmc_softc_t
*
const
,
u
32
);
unsigned
lmc_mii_readreg
(
lmc_softc_t
*
const
,
unsigned
,
unsigned
);
void
lmc_mii_writereg
(
lmc_softc_t
*
const
,
unsigned
,
unsigned
,
unsigned
);
void
lmc_gpio_mkinput
(
lmc_softc_t
*
const
sc
,
u
_int32_t
bits
);
void
lmc_gpio_mkoutput
(
lmc_softc_t
*
const
sc
,
u
_int32_t
bits
);
void
lmc_gpio_mkinput
(
lmc_softc_t
*
const
sc
,
u
32
bits
);
void
lmc_gpio_mkoutput
(
lmc_softc_t
*
const
sc
,
u
32
bits
);
int
lmc_ioctl
(
struct
net_device
*
dev
,
struct
ifreq
*
ifr
,
int
cmd
);
...
...
@@ -26,8 +26,7 @@ extern lmc_media_t lmc_t1_media;
extern
lmc_media_t
lmc_hssi_media
;
#ifdef _DBG_EVENTLOG
static
void
lmcEventLog
(
u_int32_t
EventNum
,
u_int32_t
arg2
,
u_int32_t
arg3
);
static
void
lmcEventLog
(
u32
EventNum
,
u32
arg2
,
u32
arg3
);
#endif
#endif
drivers/net/wan/lmc/lmc_debug.c
View file @
867240f7
#include <linux/types.h>
#include <linux/netdevice.h>
#include <linux/interrupt.h>
...
...
@@ -48,10 +47,10 @@ void lmcConsoleLog(char *type, unsigned char *ucData, int iLen)
#endif
#ifdef DEBUG
u
_int32_t
lmcEventLogIndex
=
0
;
u
_int32_t
lmcEventLogBuf
[
LMC_EVENTLOGSIZE
*
LMC_EVENTLOGARGS
];
u
32
lmcEventLogIndex
;
u
32
lmcEventLogBuf
[
LMC_EVENTLOGSIZE
*
LMC_EVENTLOGARGS
];
void
lmcEventLog
(
u_int32_t
EventNum
,
u_int32_t
arg2
,
u_int32_t
arg3
)
void
lmcEventLog
(
u32
EventNum
,
u32
arg2
,
u32
arg3
)
{
lmcEventLogBuf
[
lmcEventLogIndex
++
]
=
EventNum
;
lmcEventLogBuf
[
lmcEventLogIndex
++
]
=
arg2
;
...
...
drivers/net/wan/lmc/lmc_debug.h
View file @
867240f7
...
...
@@ -38,15 +38,15 @@
#ifdef DEBUG
extern
u
_int32_t
lmcEventLogIndex
;
extern
u
_int32_t
lmcEventLogBuf
[
LMC_EVENTLOGSIZE
*
LMC_EVENTLOGARGS
];
extern
u
32
lmcEventLogIndex
;
extern
u
32
lmcEventLogBuf
[
LMC_EVENTLOGSIZE
*
LMC_EVENTLOGARGS
];
#define LMC_EVENT_LOG(x, y, z) lmcEventLog((x), (y), (z))
#else
#define LMC_EVENT_LOG(x,y,z)
#endif
/* end ifdef _DBG_EVENTLOG */
void
lmcConsoleLog
(
char
*
type
,
unsigned
char
*
ucData
,
int
iLen
);
void
lmcEventLog
(
u_int32_t
EventNum
,
u_int32_t
arg2
,
u_int32_t
arg3
);
void
lmcEventLog
(
u32
EventNum
,
u32
arg2
,
u32
arg3
);
void
lmc_trace
(
struct
net_device
*
dev
,
char
*
msg
);
#endif
drivers/net/wan/lmc/lmc_main.c
View file @
867240f7
...
...
@@ -310,7 +310,8 @@ int lmc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) /*fold00*/
ret
=
-
EFAULT
;
break
;
}
if
(
copy_to_user
(
ifr
->
ifr_data
+
sizeof
(
u32
),
lmcEventLogBuf
,
sizeof
(
lmcEventLogBuf
)))
if
(
copy_to_user
(
ifr
->
ifr_data
+
sizeof
(
u32
),
lmcEventLogBuf
,
sizeof
(
lmcEventLogBuf
)))
ret
=
-
EFAULT
;
else
ret
=
0
;
...
...
@@ -624,7 +625,7 @@ static void lmc_watchdog (unsigned long data) /*fold00*/
struct
net_device
*
dev
=
(
struct
net_device
*
)
data
;
lmc_softc_t
*
sc
=
dev_to_sc
(
dev
);
int
link_status
;
u
_int32_t
ticks
;
u
32
ticks
;
unsigned
long
flags
;
lmc_trace
(
dev
,
"lmc_watchdog in"
);
...
...
@@ -1899,7 +1900,7 @@ static void lmc_softreset (lmc_softc_t * const sc) /*fold00*/
lmc_trace
(
sc
->
lmc_device
,
"lmc_softreset out"
);
}
void
lmc_gpio_mkinput
(
lmc_softc_t
*
const
sc
,
u
_int32_t
bits
)
/*fold00*/
void
lmc_gpio_mkinput
(
lmc_softc_t
*
const
sc
,
u
32
bits
)
/*fold00*/
{
lmc_trace
(
sc
->
lmc_device
,
"lmc_gpio_mkinput in"
);
sc
->
lmc_gpio_io
&=
~
bits
;
...
...
@@ -1907,7 +1908,7 @@ void lmc_gpio_mkinput(lmc_softc_t * const sc, u_int32_t bits) /*fold00*/
lmc_trace
(
sc
->
lmc_device
,
"lmc_gpio_mkinput out"
);
}
void
lmc_gpio_mkoutput
(
lmc_softc_t
*
const
sc
,
u
_int32_t
bits
)
/*fold00*/
void
lmc_gpio_mkoutput
(
lmc_softc_t
*
const
sc
,
u
32
bits
)
/*fold00*/
{
lmc_trace
(
sc
->
lmc_device
,
"lmc_gpio_mkoutput in"
);
sc
->
lmc_gpio_io
|=
bits
;
...
...
@@ -1915,7 +1916,7 @@ void lmc_gpio_mkoutput(lmc_softc_t * const sc, u_int32_t bits) /*fold00*/
lmc_trace
(
sc
->
lmc_device
,
"lmc_gpio_mkoutput out"
);
}
void
lmc_led_on
(
lmc_softc_t
*
const
sc
,
u
_int32_t
led
)
/*fold00*/
void
lmc_led_on
(
lmc_softc_t
*
const
sc
,
u
32
led
)
/*fold00*/
{
lmc_trace
(
sc
->
lmc_device
,
"lmc_led_on in"
);
if
((
~
sc
->
lmc_miireg16
)
&
led
){
/* Already on! */
...
...
@@ -1928,7 +1929,7 @@ void lmc_led_on(lmc_softc_t * const sc, u_int32_t led) /*fold00*/
lmc_trace
(
sc
->
lmc_device
,
"lmc_led_on out"
);
}
void
lmc_led_off
(
lmc_softc_t
*
const
sc
,
u
_int32_t
led
)
/*fold00*/
void
lmc_led_off
(
lmc_softc_t
*
const
sc
,
u
32
led
)
/*fold00*/
{
lmc_trace
(
sc
->
lmc_device
,
"lmc_led_off in"
);
if
(
sc
->
lmc_miireg16
&
led
){
/* Already set don't do anything */
...
...
@@ -1984,7 +1985,7 @@ static void lmc_reset(lmc_softc_t * const sc) /*fold00*/
static
void
lmc_dec_reset
(
lmc_softc_t
*
const
sc
)
/*fold00*/
{
u
_int32_t
val
;
u
32
val
;
lmc_trace
(
sc
->
lmc_device
,
"lmc_dec_reset in"
);
/*
...
...
drivers/net/wan/lmc/lmc_media.c
View file @
867240f7
...
...
@@ -93,8 +93,7 @@ static void lmc_dummy_set_1 (lmc_softc_t * const, int);
static
void
lmc_dummy_set2_1
(
lmc_softc_t
*
const
,
lmc_ctl_t
*
);
static
inline
void
write_av9110_bit
(
lmc_softc_t
*
,
int
);
static
void
write_av9110
(
lmc_softc_t
*
,
u_int32_t
,
u_int32_t
,
u_int32_t
,
u_int32_t
,
u_int32_t
);
static
void
write_av9110
(
lmc_softc_t
*
,
u32
,
u32
,
u32
,
u32
,
u32
);
lmc_media_t
lmc_ds3_media
=
{
lmc_ds3_init
,
/* special media init stuff */
...
...
@@ -679,7 +678,7 @@ static int
lmc_ssi_get_link_status
(
lmc_softc_t
*
const
sc
)
{
u16
link_status
;
u
_int32_t
ticks
;
u
32
ticks
;
int
ret
=
1
;
int
hw_hdsk
=
1
;
...
...
@@ -835,9 +834,7 @@ write_av9110_bit (lmc_softc_t * sc, int c)
LMC_CSR_WRITE
(
sc
,
csr_gp
,
sc
->
lmc_gpio
);
}
static
void
write_av9110
(
lmc_softc_t
*
sc
,
u_int32_t
n
,
u_int32_t
m
,
u_int32_t
v
,
u_int32_t
x
,
u_int32_t
r
)
static
void
write_av9110
(
lmc_softc_t
*
sc
,
u32
n
,
u32
m
,
u32
v
,
u32
x
,
u32
r
)
{
int
i
;
...
...
drivers/net/wan/lmc/lmc_var.h
View file @
867240f7
...
...
@@ -100,45 +100,45 @@ struct lmc_regfile_t {
* used to define bits in the second tulip_desc_t field (length)
* for the transmit descriptor -baz */
#define LMC_TDES_FIRST_BUFFER_SIZE ((u
_int32_t
)(0x000007FF))
#define LMC_TDES_SECOND_BUFFER_SIZE ((u
_int32_t
)(0x003FF800))
#define LMC_TDES_HASH_FILTERING ((u
_int32_t
)(0x00400000))
#define LMC_TDES_DISABLE_PADDING ((u
_int32_t
)(0x00800000))
#define LMC_TDES_SECOND_ADDR_CHAINED ((u
_int32_t
)(0x01000000))
#define LMC_TDES_END_OF_RING ((u
_int32_t
)(0x02000000))
#define LMC_TDES_ADD_CRC_DISABLE ((u
_int32_t
)(0x04000000))
#define LMC_TDES_SETUP_PACKET ((u
_int32_t
)(0x08000000))
#define LMC_TDES_INVERSE_FILTERING ((u
_int32_t
)(0x10000000))
#define LMC_TDES_FIRST_SEGMENT ((u
_int32_t
)(0x20000000))
#define LMC_TDES_LAST_SEGMENT ((u
_int32_t
)(0x40000000))
#define LMC_TDES_INTERRUPT_ON_COMPLETION ((u
_int32_t
)(0x80000000))
#define LMC_TDES_FIRST_BUFFER_SIZE ((u
32
)(0x000007FF))
#define LMC_TDES_SECOND_BUFFER_SIZE ((u
32
)(0x003FF800))
#define LMC_TDES_HASH_FILTERING ((u
32
)(0x00400000))
#define LMC_TDES_DISABLE_PADDING ((u
32
)(0x00800000))
#define LMC_TDES_SECOND_ADDR_CHAINED ((u
32
)(0x01000000))
#define LMC_TDES_END_OF_RING ((u
32
)(0x02000000))
#define LMC_TDES_ADD_CRC_DISABLE ((u
32
)(0x04000000))
#define LMC_TDES_SETUP_PACKET ((u
32
)(0x08000000))
#define LMC_TDES_INVERSE_FILTERING ((u
32
)(0x10000000))
#define LMC_TDES_FIRST_SEGMENT ((u
32
)(0x20000000))
#define LMC_TDES_LAST_SEGMENT ((u
32
)(0x40000000))
#define LMC_TDES_INTERRUPT_ON_COMPLETION ((u
32
)(0x80000000))
#define TDES_SECOND_BUFFER_SIZE_BIT_NUMBER 11
#define TDES_COLLISION_COUNT_BIT_NUMBER 3
/* Constants for the RCV descriptor RDES */
#define LMC_RDES_OVERFLOW ((u
_int32_t
)(0x00000001))
#define LMC_RDES_CRC_ERROR ((u
_int32_t
)(0x00000002))
#define LMC_RDES_DRIBBLING_BIT
((u_int32_t
)(0x00000004))
#define LMC_RDES_REPORT_ON_MII_ERR ((u
_int32_t
)(0x00000008))
#define LMC_RDES_RCV_WATCHDOG_TIMEOUT ((u
_int32_t
)(0x00000010))
#define LMC_RDES_FRAME_TYPE ((u
_int32_t
)(0x00000020))
#define LMC_RDES_COLLISION_SEEN ((u
_int32_t
)(0x00000040))
#define LMC_RDES_FRAME_TOO_LONG ((u
_int32_t
)(0x00000080))
#define LMC_RDES_LAST_DESCRIPTOR ((u
_int32_t
)(0x00000100))
#define LMC_RDES_FIRST_DESCRIPTOR ((u
_int32_t
)(0x00000200))
#define LMC_RDES_MULTICAST_FRAME ((u
_int32_t
)(0x00000400))
#define LMC_RDES_RUNT_FRAME ((u
_int32_t
)(0x00000800))
#define LMC_RDES_DATA_TYPE ((u
_int32_t
)(0x00003000))
#define LMC_RDES_LENGTH_ERROR ((u
_int32_t
)(0x00004000))
#define LMC_RDES_ERROR_SUMMARY ((u
_int32_t
)(0x00008000))
#define LMC_RDES_FRAME_LENGTH ((u
_int32_t
)(0x3FFF0000))
#define LMC_RDES_OWN_BIT ((u
_int32_t
)(0x80000000))
#define LMC_RDES_OVERFLOW ((u
32
)(0x00000001))
#define LMC_RDES_CRC_ERROR ((u
32
)(0x00000002))
#define LMC_RDES_DRIBBLING_BIT
((u32
)(0x00000004))
#define LMC_RDES_REPORT_ON_MII_ERR ((u
32
)(0x00000008))
#define LMC_RDES_RCV_WATCHDOG_TIMEOUT ((u
32
)(0x00000010))
#define LMC_RDES_FRAME_TYPE ((u
32
)(0x00000020))
#define LMC_RDES_COLLISION_SEEN ((u
32
)(0x00000040))
#define LMC_RDES_FRAME_TOO_LONG ((u
32
)(0x00000080))
#define LMC_RDES_LAST_DESCRIPTOR ((u
32
)(0x00000100))
#define LMC_RDES_FIRST_DESCRIPTOR ((u
32
)(0x00000200))
#define LMC_RDES_MULTICAST_FRAME ((u
32
)(0x00000400))
#define LMC_RDES_RUNT_FRAME ((u
32
)(0x00000800))
#define LMC_RDES_DATA_TYPE ((u
32
)(0x00003000))
#define LMC_RDES_LENGTH_ERROR ((u
32
)(0x00004000))
#define LMC_RDES_ERROR_SUMMARY ((u
32
)(0x00008000))
#define LMC_RDES_FRAME_LENGTH ((u
32
)(0x3FFF0000))
#define LMC_RDES_OWN_BIT ((u
32
)(0x80000000))
#define RDES_FRAME_LENGTH_BIT_NUMBER 16
#define LMC_RDES_ERROR_MASK ( (u
_int32_t
)( \
#define LMC_RDES_ERROR_MASK ( (u
32
)( \
LMC_RDES_OVERFLOW \
| LMC_RDES_DRIBBLING_BIT \
| LMC_RDES_REPORT_ON_MII_ERR \
...
...
@@ -150,32 +150,32 @@ struct lmc_regfile_t {
*/
typedef
struct
{
u
_int32_t
n
;
u
_int32_t
m
;
u
_int32_t
v
;
u
_int32_t
x
;
u
_int32_t
r
;
u
_int32_t
f
;
u
_int32_t
exact
;
u
32
n
;
u
32
m
;
u
32
v
;
u
32
x
;
u
32
r
;
u
32
f
;
u
32
exact
;
}
lmc_av9110_t
;
/*
* Common structure passed to the ioctl code.
*/
struct
lmc___ctl
{
u
_int32_t
cardtype
;
u
_int32_t
clock_source
;
/* HSSI, T1 */
u
_int32_t
clock_rate
;
/* T1 */
u
_int32_t
crc_length
;
u
_int32_t
cable_length
;
/* DS3 */
u
_int32_t
scrambler_onoff
;
/* DS3 */
u
_int32_t
cable_type
;
/* T1 */
u
_int32_t
keepalive_onoff
;
/* protocol */
u
_int32_t
ticks
;
/* ticks/sec */
u
32
cardtype
;
u
32
clock_source
;
/* HSSI, T1 */
u
32
clock_rate
;
/* T1 */
u
32
crc_length
;
u
32
cable_length
;
/* DS3 */
u
32
scrambler_onoff
;
/* DS3 */
u
32
cable_type
;
/* T1 */
u
32
keepalive_onoff
;
/* protocol */
u
32
ticks
;
/* ticks/sec */
union
{
lmc_av9110_t
ssi
;
}
cardspec
;
u
_int32_t
circuit_type
;
/* T1 or E1 */
u
32
circuit_type
;
/* T1 or E1 */
};
...
...
@@ -224,52 +224,52 @@ struct lmc___media {
struct
lmc_extra_statistics
{
u_int32_t
version_size
;
u_int32_t
lmc_cardtype
;
u_int32_t
tx_ProcTimeout
;
u_int32_t
tx_IntTimeout
;
u_int32_t
tx_NoCompleteCnt
;
u_int32_t
tx_MaxXmtsB4Int
;
u_int32_t
tx_TimeoutCnt
;
u_int32_t
tx_OutOfSyncPtr
;
u_int32_t
tx_tbusy0
;
u_int32_t
tx_tbusy1
;
u_int32_t
tx_tbusy_calls
;
u_int32_t
resetCount
;
u_int32_t
lmc_txfull
;
u_int32_t
tbusy
;
u_int32_t
dirtyTx
;
u_int32_t
lmc_next_tx
;
u_int32_t
otherTypeCnt
;
u_int32_t
lastType
;
u_int32_t
lastTypeOK
;
u_int32_t
txLoopCnt
;
u_int32_t
usedXmtDescripCnt
;
u_int32_t
txIndexCnt
;
u_int32_t
rxIntLoopCnt
;
u_int32_t
rx_SmallPktCnt
;
u_int32_t
rx_BadPktSurgeCnt
;
u_int32_t
rx_BuffAllocErr
;
u_int32_t
tx_lossOfClockCnt
;
/* T1 error counters */
u_int32_t
framingBitErrorCount
;
u_int32_t
lineCodeViolationCount
;
u_int32_t
lossOfFrameCount
;
u_int32_t
changeOfFrameAlignmentCount
;
u_int32_t
severelyErroredFrameCount
;
u_int32_t
check
;
u32
version_size
;
u32
lmc_cardtype
;
u32
tx_ProcTimeout
;
u32
tx_IntTimeout
;
u32
tx_NoCompleteCnt
;
u32
tx_MaxXmtsB4Int
;
u32
tx_TimeoutCnt
;
u32
tx_OutOfSyncPtr
;
u32
tx_tbusy0
;
u32
tx_tbusy1
;
u32
tx_tbusy_calls
;
u32
resetCount
;
u32
lmc_txfull
;
u32
tbusy
;
u32
dirtyTx
;
u32
lmc_next_tx
;
u32
otherTypeCnt
;
u32
lastType
;
u32
lastTypeOK
;
u32
txLoopCnt
;
u32
usedXmtDescripCnt
;
u32
txIndexCnt
;
u32
rxIntLoopCnt
;
u32
rx_SmallPktCnt
;
u32
rx_BadPktSurgeCnt
;
u32
rx_BuffAllocErr
;
u32
tx_lossOfClockCnt
;
/* T1 error counters */
u32
framingBitErrorCount
;
u32
lineCodeViolationCount
;
u32
lossOfFrameCount
;
u32
changeOfFrameAlignmentCount
;
u32
severelyErroredFrameCount
;
u32
check
;
};
typedef
struct
lmc_xinfo
{
u
_int32_t
Magic0
;
/* BEEFCAFE */
u
32
Magic0
;
/* BEEFCAFE */
u
_int32_t
PciCardType
;
u
_int32_t
PciSlotNumber
;
/* PCI slot number */
u
32
PciCardType
;
u
32
PciSlotNumber
;
/* PCI slot number */
u16
DriverMajorVersion
;
u16
DriverMinorVersion
;
...
...
@@ -282,9 +282,9 @@ typedef struct lmc_xinfo {
u16
t1_alarm2_status
;
int
link_status
;
u
_int32_t
mii_reg16
;
u
32
mii_reg16
;
u
_int32_t
Magic1
;
/* DEADBEEF */
u
32
Magic1
;
/* DEADBEEF */
}
LMC_XINFO
;
...
...
@@ -298,16 +298,16 @@ struct lmc___softc {
struct
net_device
*
lmc_device
;
int
hang
,
rxdesc
,
bad_packet
,
some_counter
;
u
_int32_t
txgo
;
u
32
txgo
;
struct
lmc_regfile_t
lmc_csrs
;
volatile
u
_int32_t
lmc_txtick
;
volatile
u
_int32_t
lmc_rxtick
;
u
_int32_t
lmc_flags
;
u
_int32_t
lmc_intrmask
;
/* our copy of csr_intr */
u
_int32_t
lmc_cmdmode
;
/* our copy of csr_cmdmode */
u
_int32_t
lmc_busmode
;
/* our copy of csr_busmode */
u
_int32_t
lmc_gpio_io
;
/* state of in/out settings */
u
_int32_t
lmc_gpio
;
/* state of outputs */
volatile
u
32
lmc_txtick
;
volatile
u
32
lmc_rxtick
;
u
32
lmc_flags
;
u
32
lmc_intrmask
;
/* our copy of csr_intr */
u
32
lmc_cmdmode
;
/* our copy of csr_cmdmode */
u
32
lmc_busmode
;
/* our copy of csr_busmode */
u
32
lmc_gpio_io
;
/* state of in/out settings */
u
32
lmc_gpio
;
/* state of outputs */
struct
sk_buff
*
lmc_txq
[
LMC_TXDESCS
];
struct
sk_buff
*
lmc_rxq
[
LMC_RXDESCS
];
volatile
...
...
@@ -323,37 +323,37 @@ struct lmc___softc {
int
lmc_ok
;
int
last_link_status
;
int
lmc_cardtype
;
u
_int32_t
last_frameerr
;
u
32
last_frameerr
;
lmc_media_t
*
lmc_media
;
struct
timer_list
timer
;
lmc_ctl_t
ictl
;
u
_int32_t
TxDescriptControlInit
;
u
32
TxDescriptControlInit
;
int
tx_TimeoutInd
;
/* additional driver state */
int
tx_TimeoutDisplay
;
unsigned
int
lastlmc_taint_tx
;
int
lasttx_packets
;
u
_int32_t
tx_clockState
;
u
_int32_t
lmc_crcSize
;
LMC_XINFO
lmc_xinfo
;
u
32
tx_clockState
;
u
32
lmc_crcSize
;
LMC_XINFO
lmc_xinfo
;
char
lmc_yel
,
lmc_blue
,
lmc_red
;
/* for T1 and DS3 */
char
lmc_timing
;
/* for HSSI and SSI */
int
got_irq
;
char
lmc_timing
;
/* for HSSI and SSI */
int
got_irq
;
char
last_led_err
[
4
];
char
last_led_err
[
4
];
u32
last_int
;
u32
num_int
;
u32
last_int
;
u32
num_int
;
spinlock_t
lmc_lock
;
u16
if_type
;
/* HDLC/PPP or NET */
/* Failure cases */
u8
failed_ring
;
u8
failed_recv_alloc
;
/* Failure cases */
u8
failed_ring
;
u8
failed_recv_alloc
;
/* Structure check */
u32
check
;
/* Structure check */
u32
check
;
};
#define LMC_PCI_TIME 1
...
...
@@ -449,8 +449,8 @@ struct lmc___softc {
| TULIP_STS_TXUNDERFLOW\
| TULIP_STS_RXSTOPPED )
#define DESC_OWNED_BY_SYSTEM ((u
_int32_t
)(0x00000000))
#define DESC_OWNED_BY_DC21X4 ((u
_int32_t
)(0x80000000))
#define DESC_OWNED_BY_SYSTEM ((u
32
)(0x00000000))
#define DESC_OWNED_BY_DC21X4 ((u
32
)(0x80000000))
#ifndef TULIP_CMD_RECEIVEALL
#define TULIP_CMD_RECEIVEALL 0x40000000L
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment