音影先锋亚洲天堂网|电影世界尽头的爱完整版播放|国产 熟女 91|高清无码免费观看欧美日韩|韩国一区二区三区黄色录像|美女亚洲加勒比在线|亚洲综合网 开心五月|7x成人在线入口|成人网站免费日韩毛片区|国产黄片?一级?二级?三级

PCNET-ISA_II Datasheet

  • PCNET-ISA_II

  • How to Perform Plug and Play Initiation Key with PCnet-ISA I...

  • 13頁(yè)

  • ETC

掃碼查看芯片數(shù)據(jù)手冊(cè)

上傳產(chǎn)品規(guī)格書

PDF預(yù)覽

/****************************************************************************
NAME
ip_cfg_init - Plug and Play Register initialization.
DESCRIPTION
This function initializes the PCnet-ISA II Plug and Play registers with a
predefined set of values.
In order to provide compatability with AMD device drivers, this function
writes the ASCII WW pattern in EEPROM word location 7.
INPUT
Global variable Iobase is assumed to contain the 16-bit I/O address that
will locate the target Plug and Play device in the I/O memory space.
CALLS
outport() - Outputs a word or byte to a hardware port. Function in the
(Borland) run-time library.
AROME - #define AROME Iobase+0xE
****************************************************************************/
void ip_cfg_init(void)
{
int temp;
ip_cfg_w(0x02, 0x05);
ip_cfg_w(0x03, 0x00);
ip_cfg_w(0x06, 0x01);
/* RESET command. */
/* WAKE[0] command. */
/* SET_CSN[1] command. */
ip_cfg_w(0x60, (BYTE)((Iobase & 0xFF00) >> 8)); /* I/O addr: 15:8 */
ip_cfg_w(0x61, (BYTE)(Iobase & 0x00FF));
/* I/O addr: 7:0 */
ip_cfg_w(0x70, 0x00);
/* IRQ level: 0 = no IRQ selection. */
ip_cfg_w(0x71, 0);
/* IRQ type: Edge, active low. */
ip_cfg_w(0x74, 0x00);
/* DMA 0: Channel 0. */
ip_cfg_w(0x43, 0xFE);
/* Mem Desc 0: bit0 = 0 = disable. */
ip_cfg_w(0x4B, 0xFE);
/* Mem Desc 1: bit0 = 0 = disable. */
ip_cfg_w(0xF0, 0x00);
/* Vendor (AMD) Defined Byte. */
ip_cfg_w(0x31, 0x00);
/* Disable I/O range check. */
ip_cfg_w(0x30, 0x01);
/* Activate Reg: bit0 = 1 = active. */
ip_cfg_w(0x02, 0x02);
/* Cfg Ctl: bit1 = 1 = WAIT_FOR_KEY */
/* Write ASCII WW to PCnet-ISA II internal address PROM. */
temp = ip_bcr_r(2);
/* Set APWEN bit... */
ip_bcr_w(2, (temp | 0x0100));
/* ...in ISACSR2. */
outport(AROME, 0x5757);
/* Stuff the "WW". */
temp = ip_bcr_r(2);
/* Clear APWEN bit... */
ip_bcr_w(2, (temp & 0xFEFF));
/* ...in ISACSR2. */
}
8
How to Perform Plug and Play Initiation Key with PCnet-ISA II

PCNET-ISA_II相關(guān)型號(hào)PDF文件下載

您可能感興趣的PDF文件資料

熱門IC型號(hào)推薦

掃碼下載APP,
一鍵連接廣大的電子世界。

在線人工客服

買家服務(wù):
賣家服務(wù):
技術(shù)客服:

0571-85317607

網(wǎng)站技術(shù)支持

13606545031

客服在線時(shí)間周一至周五
9:00-17:30

關(guān)注官方微信號(hào),
第一時(shí)間獲取資訊。

建議反饋
返回頂部

建議反饋

聯(lián)系人:

聯(lián)系方式:

按住滑塊,拖拽到最右邊
>>
感謝您向阿庫(kù)提出的寶貴意見,您的參與是維庫(kù)提升服務(wù)的動(dòng)力!意見一經(jīng)采納,將有感恩紅包奉上哦!