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

  1. /*
  2.     File:         USBAx8817x_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                  0x2002
  53. #define AXE_CMD_WRITE_RX_SRAM                   0x0103
  54. #define AXE_CMD_WRITE_TX_SRAM                   0x0104
  55. #define AXE_CMD_MII_OPMODE_SW                   0x0106
  56. #define AXE_CMD_MII_READ_REG                    0x2007
  57. #define AXE_CMD_MII_WRITE_REG                   0x2108
  58. #define AXE_CMD_MII_READ_OPMODE                 0x1009
  59. #define AXE_CMD_MII_OPMODE_HW                   0x010A
  60. #define AXE_CMD_SROM_READ                       0x200B
  61. #define AXE_CMD_SROM_WRITE                      0x010C
  62. #define AXE_CMD_SROM_WR_ENABLE                  0x010D
  63. #define AXE_CMD_SROM_WR_DISABLE                 0x010E
  64. #define AXE_CMD_RXCTL_READ                      0x200F
  65. #define AXE_CMD_RXCTL_WRITE                     0x0110
  66. #define AXE_CMD_READ_IPG012                     0x3011
  67. #define AXE_CMD_WRITE_IPG0                      0x0112
  68. #define AXE_CMD_WRITE_IPG1                      0x0113
  69. #define AXE_CMD_WRITE_IPG2                      0x0114
  70. #define AXE_CMD_READ_MCAST                      0x8015
  71. #define AXE_CMD_WRITE_MCAST                     0x8116
  72. #define AXE_CMD_READ_NODEID                     0x6017
  73. #define AXE_CMD_WRITE_NODEID                    0x6118
  74. #define AXE_CMD_READ_PHYID                      0x2019
  75. #define AXE_CMD_READ_MEDIA                      0x101A
  76. #define AXE_CMD_WRITE_MEDIA                     0x011B
  77. #define AXE_CMD_READ_MONITOR_MODE               0x101C
  78. #define AXE_CMD_WRITE_MONITOR_MODE              0x011D
  79. #define AXE_CMD_READ_GPIO                       0x101E
  80. #define AXE_CMD_WRITE_GPIO                      0x011F
  81.  
  82. #define AXE_MEDIA_FULL_DUPLEX                   0x02
  83. #define AXE_MEDIA_TX_ABORT_ALLOW                0x04
  84. #define AXE_MEDIA_FLOW_CONTROL_EN               0x10
  85.  
  86. #define AXE_RXCMD_PROMISC                       0x0001
  87. #define AXE_RXCMD_ALLMULTI                      0x0002
  88. #define AXE_RXCMD_UNICAST                       0x0004
  89. #define AXE_RXCMD_BROADCAST                     0x0008
  90. #define AXE_RXCMD_MULTICAST                     0x0010
  91. #define AXE_RXCMD_ENABLE                        0x0080
  92.  
  93. #if 0
  94. #define ENABLE_FLAGS  (AXE_RXCMD_UNICAST | AXE_RXCMD_ENABLE | \
  95.                        AXE_RXCMD_BROADCAST | AXE_RXCMD_MULTICAST)
  96. #endif
  97.  
  98. #define RX_FLAG_FULL (1 << 0)
  99.