mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Submitted by: Naoki Hamada <nao@sbl.cl.nec.co.jp>
Support 3COM 3C569 network card on PC98.
This commit is contained in:
parent
0aa19758df
commit
95d98df162
3 changed files with 17 additions and 3 deletions
|
|
@ -38,7 +38,7 @@
|
|||
*/
|
||||
|
||||
/*
|
||||
* $Id: if_ep.c,v 1.53 1996/09/06 23:07:33 phk Exp $
|
||||
* $Id: if_ep.c,v 1.54 1996/12/13 21:28:21 wollman Exp $
|
||||
*
|
||||
* Promiscuous mode added and interrupt logic slightly changed
|
||||
* to reduce the number of adapter failures. Transceiver select
|
||||
|
|
@ -374,12 +374,17 @@ ep_look_for_board_at(is)
|
|||
get_eeprom_data(id_port, EEPROM_PROD_ID);
|
||||
|
||||
ep_board[ep_boards].epb_used = 0;
|
||||
#ifdef PC98
|
||||
ep_board[ep_boards].epb_addr =
|
||||
(get_eeprom_data(id_port, EEPROM_ADDR_CFG) & 0x1f) * 0x100 + 0x40d0;
|
||||
#else
|
||||
ep_board[ep_boards].epb_addr =
|
||||
(get_eeprom_data(id_port, EEPROM_ADDR_CFG) & 0x1f) * 0x10 + 0x200;
|
||||
|
||||
if(ep_board[ep_boards].epb_addr > 0x3E0)
|
||||
/* Board in EISA configuration mode */
|
||||
continue;
|
||||
#endif /* PC98 */
|
||||
|
||||
outb(id_port, ep_current_tag); /* tags board */
|
||||
outb(id_port, ACTIVATE_ADAPTER_TO_CONFIG);
|
||||
|
|
|
|||
|
|
@ -26,10 +26,14 @@
|
|||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: elink.h,v 1.1 1994/05/25 20:06:43 ats Exp $
|
||||
* $Id: elink.h,v 1.1 1994/08/24 22:32:42 ats Exp $
|
||||
*/
|
||||
|
||||
#ifdef PC98
|
||||
#define ELINK_ID_PORT 0x71d0
|
||||
#else
|
||||
#define ELINK_ID_PORT 0x100
|
||||
#endif
|
||||
#define ELINK_RESET 0xc0
|
||||
|
||||
#define ELINK_507_POLY 0xe7
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
*/
|
||||
|
||||
/*
|
||||
* $Id: if_ep.c,v 1.53 1996/09/06 23:07:33 phk Exp $
|
||||
* $Id: if_ep.c,v 1.54 1996/12/13 21:28:21 wollman Exp $
|
||||
*
|
||||
* Promiscuous mode added and interrupt logic slightly changed
|
||||
* to reduce the number of adapter failures. Transceiver select
|
||||
|
|
@ -374,12 +374,17 @@ ep_look_for_board_at(is)
|
|||
get_eeprom_data(id_port, EEPROM_PROD_ID);
|
||||
|
||||
ep_board[ep_boards].epb_used = 0;
|
||||
#ifdef PC98
|
||||
ep_board[ep_boards].epb_addr =
|
||||
(get_eeprom_data(id_port, EEPROM_ADDR_CFG) & 0x1f) * 0x100 + 0x40d0;
|
||||
#else
|
||||
ep_board[ep_boards].epb_addr =
|
||||
(get_eeprom_data(id_port, EEPROM_ADDR_CFG) & 0x1f) * 0x10 + 0x200;
|
||||
|
||||
if(ep_board[ep_boards].epb_addr > 0x3E0)
|
||||
/* Board in EISA configuration mode */
|
||||
continue;
|
||||
#endif /* PC98 */
|
||||
|
||||
outb(id_port, ep_current_tag); /* tags board */
|
||||
outb(id_port, ACTIVATE_ADAPTER_TO_CONFIG);
|
||||
|
|
|
|||
Loading…
Reference in a new issue