diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2008-01-13 09:17:55 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2008-01-18 14:44:33 -0500 |
commit | 21b645e4c2531631992dc127cf676631a70046c8 (patch) | |
tree | 3afd7065134ccef5312e45010fd2afe4359ab8f5 /drivers/net/dl2k.h | |
parent | d50956af74859b4e9ba544a0211a94bc2621c1d9 (diff) |
dl2k: ANAR, ANLPAR fixes
same story, different registers...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/dl2k.h')
-rw-r--r-- | drivers/net/dl2k.h | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/drivers/net/dl2k.h b/drivers/net/dl2k.h index 931fd0e58f3c..e6623085e834 100644 --- a/drivers/net/dl2k.h +++ b/drivers/net/dl2k.h | |||
@@ -357,24 +357,6 @@ enum _mii_bmsr { | |||
357 | }; | 357 | }; |
358 | 358 | ||
359 | /* ANAR */ | 359 | /* ANAR */ |
360 | typedef union t_MII_ANAR { | ||
361 | u16 image; | ||
362 | struct { | ||
363 | u16 selector:5; // bit 4:0 | ||
364 | u16 media_10BT_HD:1; // bit 5 | ||
365 | u16 media_10BT_FD:1; // bit 6 | ||
366 | u16 media_100BX_HD:1; // bit 7 | ||
367 | u16 media_100BX_FD:1; // bit 8 | ||
368 | u16 media_100BT4:1; // bit 9 | ||
369 | u16 pause:1; // bit 10 | ||
370 | u16 asymmetric:1; // bit 11 | ||
371 | u16 _bit12:1; // bit 12 | ||
372 | u16 remote_fault:1; // bit 13 | ||
373 | u16 _bit14:1; // bit 14 | ||
374 | u16 next_page:1; // bit 15 | ||
375 | } bits; | ||
376 | } ANAR_t, *PANAR_t; | ||
377 | |||
378 | enum _mii_anar { | 360 | enum _mii_anar { |
379 | MII_ANAR_NEXT_PAGE = 0x8000, | 361 | MII_ANAR_NEXT_PAGE = 0x8000, |
380 | MII_ANAR_REMOTE_FAULT = 0x4000, | 362 | MII_ANAR_REMOTE_FAULT = 0x4000, |
@@ -390,24 +372,6 @@ enum _mii_anar { | |||
390 | }; | 372 | }; |
391 | 373 | ||
392 | /* ANLPAR */ | 374 | /* ANLPAR */ |
393 | typedef union t_MII_ANLPAR { | ||
394 | u16 image; | ||
395 | struct { | ||
396 | u16 selector:5; // bit 4:0 | ||
397 | u16 media_10BT_HD:1; // bit 5 | ||
398 | u16 media_10BT_FD:1; // bit 6 | ||
399 | u16 media_100BX_HD:1; // bit 7 | ||
400 | u16 media_100BX_FD:1; // bit 8 | ||
401 | u16 media_100BT4:1; // bit 9 | ||
402 | u16 pause:1; // bit 10 | ||
403 | u16 asymmetric:1; // bit 11 | ||
404 | u16 _bit12:1; // bit 12 | ||
405 | u16 remote_fault:1; // bit 13 | ||
406 | u16 _bit14:1; // bit 14 | ||
407 | u16 next_page:1; // bit 15 | ||
408 | } bits; | ||
409 | } ANLPAR_t, *PANLPAR_t; | ||
410 | |||
411 | enum _mii_anlpar { | 375 | enum _mii_anlpar { |
412 | MII_ANLPAR_NEXT_PAGE = MII_ANAR_NEXT_PAGE, | 376 | MII_ANLPAR_NEXT_PAGE = MII_ANAR_NEXT_PAGE, |
413 | MII_ANLPAR_REMOTE_FAULT = MII_ANAR_REMOTE_FAULT, | 377 | MII_ANLPAR_REMOTE_FAULT = MII_ANAR_REMOTE_FAULT, |
@@ -539,21 +503,6 @@ typedef enum t_MII_ADMIN_STATUS { | |||
539 | /* PCS control and status registers bitmap as the same as MII */ | 503 | /* PCS control and status registers bitmap as the same as MII */ |
540 | /* PCS Extended Status register bitmap as the same as MII */ | 504 | /* PCS Extended Status register bitmap as the same as MII */ |
541 | /* PCS ANAR */ | 505 | /* PCS ANAR */ |
542 | typedef union t_PCS_ANAR { | ||
543 | u16 image; | ||
544 | struct { | ||
545 | u16 _bit_4_0:5; // bit 4:0 | ||
546 | u16 full_duplex:1; // bit 5 | ||
547 | u16 half_duplex:1; // bit 6 | ||
548 | u16 asymmetric:1; // bit 7 | ||
549 | u16 pause:1; // bit 8 | ||
550 | u16 _bit_11_9:3; // bit 11:9 | ||
551 | u16 remote_fault:2; // bit 13:12 | ||
552 | u16 _bit_14:1; // bit 14 | ||
553 | u16 next_page:1; // bit 15 | ||
554 | } bits; | ||
555 | } ANAR_PCS_t, *PANAR_PCS_t; | ||
556 | |||
557 | enum _pcs_anar { | 506 | enum _pcs_anar { |
558 | PCS_ANAR_NEXT_PAGE = 0x8000, | 507 | PCS_ANAR_NEXT_PAGE = 0x8000, |
559 | PCS_ANAR_REMOTE_FAULT = 0x3000, | 508 | PCS_ANAR_REMOTE_FAULT = 0x3000, |
@@ -563,21 +512,6 @@ enum _pcs_anar { | |||
563 | PCS_ANAR_FULL_DUPLEX = 0x0020, | 512 | PCS_ANAR_FULL_DUPLEX = 0x0020, |
564 | }; | 513 | }; |
565 | /* PCS ANLPAR */ | 514 | /* PCS ANLPAR */ |
566 | typedef union t_PCS_ANLPAR { | ||
567 | u16 image; | ||
568 | struct { | ||
569 | u16 _bit_4_0:5; // bit 4:0 | ||
570 | u16 full_duplex:1; // bit 5 | ||
571 | u16 half_duplex:1; // bit 6 | ||
572 | u16 asymmetric:1; // bit 7 | ||
573 | u16 pause:1; // bit 8 | ||
574 | u16 _bit_11_9:3; // bit 11:9 | ||
575 | u16 remote_fault:2; // bit 13:12 | ||
576 | u16 _bit_14:1; // bit 14 | ||
577 | u16 next_page:1; // bit 15 | ||
578 | } bits; | ||
579 | } ANLPAR_PCS_t, *PANLPAR_PCS_t; | ||
580 | |||
581 | enum _pcs_anlpar { | 515 | enum _pcs_anlpar { |
582 | PCS_ANLPAR_NEXT_PAGE = PCS_ANAR_NEXT_PAGE, | 516 | PCS_ANLPAR_NEXT_PAGE = PCS_ANAR_NEXT_PAGE, |
583 | PCS_ANLPAR_REMOTE_FAULT = PCS_ANAR_REMOTE_FAULT, | 517 | PCS_ANLPAR_REMOTE_FAULT = PCS_ANAR_REMOTE_FAULT, |