home *** CD-ROM | disk | FTP | other *** search
/ ftp.sustworks.com 2018 / ftp.sustworks.com.zip / ftp.sustworks.com / USBAx8817x_101.dmg / src / Source / USBAx88178_private.h < prev    next >
Text File  |  2005-10-08  |  5KB  |  105 lines

  1. /*
  2.     File:         USBAx88178_private.h
  3.  
  4.     Description:  Driver for USBAx8817x USB-To-Ethernet devices
  5.  
  6.     Copyright:    Copyright 2005, Daniel Sumorok and Peter Sichel
  7.         
  8.     Disclaimer:   This program is free software; you can redistribute it
  9.                   and/or modify it under the terms of the GNU General
  10.                   Public License as published by the Free Software
  11.                   Foundation; either version 2, or (at your option)
  12.                   any later version.
  13.  
  14.                   This program is distributed in the hope that it will
  15.                   be useful, but WITHOUT ANY WARRANTY; without even
  16.                   the implied warranty of MERCHANTABILITY or FITNESS
  17.                   FOR A PARTICULAR PURPOSE.  See the GNU General
  18.                   Public License for more details.
  19.  
  20.                   You should have received a copy of the GNU General
  21.                   along with this program; if not, write to the Free
  22.                   Software Foundation, 59 Temple Place - Suite 330,
  23.                   Boston, MA 02111-1307, USA.  Change History (least
  24.                   recent first):
  25.  
  26.         Change History (most recent first):
  27.         
  28.             <1>         09/25/05        Created
  29. */
  30.  
  31. /*
  32.  * Copyright (c) 1997, 1998, 1999, 2000-2003
  33.  *      Bill Paul <wpaul@windriver.com>.  All rights reserved.
  34.  *
  35.  * Redistribution and use in source and binary forms, with or without
  36.  * modification, are permitted provided that the following conditions
  37.  * are met:
  38.  * 1. Redistributions of source code must retain the above copyright
  39.  *    notice, this list of conditions and the following disclaimer.
  40.  * 2. Redistributions in binary form must reproduce the above copyright
  41.  *    notice, this list of conditions and the following disclaimer in the
  42.  *    documentation and/or other materials provided with the distribution.
  43.  * 3. All advertising materials mentioning features or use of this software
  44.  *    must display the following acknowledgement:
  45.  *      This product includes software developed by Bill Paul.
  46.  * 4. Neither the name of the author nor the names of any co-contributors
  47.  *    may be used to endorse or promote products derived from this software
  48.  *    without specific prior written permission.
  49.  *
  50.  */
  51.  
  52. #define AXE_CMD_READ_RXTX_SRAM                  0x8002
  53. #define AXE_CMD_WRITE_RXTX_SRAM                 0x8103
  54. #define AXE_CMD_MII_OPMODE_SW                   0x0106
  55. #define AXE_CMD_MII_READ_REG                    0x2007
  56. #define AXE_CMD_MII_WRITE_REG                   0x2108
  57. #define AXE_CMD_MII_STATUS                      0x1009
  58. #define AXE_CMD_MII_OPMODE_HW                   0x010A
  59. #define AXE_CMD_SROM_READ                       0x200B
  60. #define AXE_CMD_SROM_WRITE                      0x010C
  61. #define AXE_CMD_SROM_WR_ENABLE                  0x010D
  62. #define AXE_CMD_SROM_WR_DISABLE                 0x010E
  63. #define AXE_CMD_RXCTL_READ                      0x200F
  64. #define AXE_CMD_RXCTL_WRITE                     0x0110
  65. #define AXE_CMD_READ_IPG012                     0x3011
  66. #define AXE_CMD_WRITE_IPG012                    0x0112
  67. #define AXE_CMD_READ_NODEID                     0x6013
  68. #define AXE_CMD_WRITE_NODEID                    0x6114
  69. #define AXE_CMD_READ_MCAST                      0x8015
  70. #define AXE_CMD_WRITE_MCAST                     0x8116
  71. #define AXE_CMD_TEST                            0x0117
  72. #define AXE_CMD_READ_PHYID                      0x2019
  73. #define AXE_CMD_READ_MEDIA                      0x201A
  74. #define AXE_CMD_WRITE_MEDIA                     0x011B
  75. #define AXE_CMD_READ_MONITOR_MODE               0x101C
  76. #define AXE_CMD_WRITE_MONITOR_MODE              0x011D
  77. #define AXE_CMD_READ_GPIO                       0x101E
  78. #define AXE_CMD_WRITE_GPIO                      0x011F
  79. #define AXE_CMD_RESET                           0x0120
  80. #define AXE_CMD_SW_PHY_SELECT                   0x0122
  81.  
  82. #define AXE_MEDIA_GMII_MODE                     0x0001
  83. #define AXE_MEDIA_FULL_DUPLEX                   0x0002
  84. #define AXE_MEDIA_RX_FLOW_CONTROL               0x0010
  85. #define AXE_MEDIA_TX_FLOW_CONTROL               0x0020
  86. #define AXE_MEDIA_JUMBO_FRAME                   0x0040
  87. #define AXE_MEDIA_ENCK                          0x0080
  88. #define AXE_MEDIA_RECEIVE_ENABLE                0x0100
  89. #define AXE_MEDIA_100_MODE                      0x0200
  90. #define AXE_MEDIA_STOP_BACKPRESSURE             0x0400
  91. #define AXE_MEDIA_SUPER_MAC                     0x1000
  92.  
  93. #define AXE_RXCMD_PROMISC                       0x0001
  94. #define AXE_RXCMD_ALLMULTI                      0x0002
  95. #define AXE_RXCMD_SEP                           0x0004
  96. #define AXE_RXCMD_BROADCAST                     0x0008
  97. #define AXE_RXCMD_MULTICAST                     0x0010
  98. #define AXE_RXCMD_ENABLE                        0x0080
  99.  
  100. #define USB_BURST_MASK                          0x0300
  101. #define USB_BURST_2048                          0x0000
  102. #define USB_BURST_4096                          0x0100
  103. #define USB_BURST_8192                          0x0200
  104. #define USB_BURST_16384                         0x0300
  105.