⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 initpcc.ug

📁 ATADRVR是DOS下的磁盘驱动程序,采用PIO传输 ,PCI DMA传输,ATA包,等非常全面代码示例... 内部有C与Asm描述. 编译环境:Borland C/C++ 4.52 与 Bo
💻 UG
字号:

                             INITPCC
                    PC Card ATA Setup Program

                          User's Guide

                     Version 14x and higher

    Copyright 1997-2003 by Hale Landis -- All rights reserved

                              ----
                              NOTE
                              ----

   The INITPCC program is new starting with ATADRVR Version 13A.
   Note that the source code of INITPCC is not available at this
   time.


INTRODUCTION
------------

PC Card devices, also know as PCMCIA devices, are frequently used
with notebook computers.  The INITPCC program is used to set up a
PC Card Adapter to operated with a PC Card ATA device.  A PC Card
adapter is usually called a "PCIC chip".  This chip is found in
most notebook computers and is usually compatible with the
original Intel PCIC chip.  There are several PCMCIA adapters
available for desktop systems.  These adapters are usually ISA
bus cards with a PCIC chip and a PCMCIA socket.

There are several types of PC Card ATA devices:  1.8 inch hard
disks, flash memory disks and CFA devices.  The 1.8 inch hard
disks have never been very popular and are not seen very
frequently.  Flash memory ATA devices are frequently used with
smaller notebook computers and with Personal Digital Assistant
(PDA) devices.  CFA (CompactFlash Association) devices are the
newest type of flash memory ATA devices.  CFA devices are very
popular with the new digital cameras.

PC Card ATA devices come several sizes known as Type I, Type II
and Type III.  This type describes the physical size of the card.
All types use the same electrical and programming interfaces.
Flash memory devices are usually Type I or Type II while 1.8 inch
hard disks are usually Type III.  All of these cards use a 68-pin
PCMCIA connector.  A CFA device is actually a small PCMCIA card
that uses a 50-pin version of the PCMCIA connector.  Most CFA
devices come with a 50-pin to 68-pin "adapter card".  This card
permits a CFA device to be plugged into a standard PCMCIA socket.

Note that this program sets up only PC Card ATA devices and
should not be used with PC Card modem, network and other types of
PC Card devices.

INITPCC can be used to configure an Intel compatible PCIC chip at
I/O port addresses 3E0H-3E1H.  Only socket 0 is configured and
only PC Card ATA mode is enabled.  All four PC Card ATA modes are
supported:  Primary ATA, Secondary ATA, Contiguous I/O and
Memory.  INITPCC does NOT access the CIS information and
therefore does not know if the card being setup is or is not a PC
Card ATA device.  INITPCC does NOT check for conflicts with other
devices in the system.  The ATA host adapter and ATA device that
is configured by INITPCC could overlay the same I/O port
addresses and IRQ numbers that are in use by another device.

Note that the equivalent of INITPCC is built into the newest
versions of ATACT and ATADEMO.  Also note that ATADRVR has
supported all these PC Card ATA modes but this was not previously
documented.


RUNNING INITPCC
---------------

INITPCC can be run by using one of the following commmand lines:

   INITPCC PCCMODE=PRImary   [ POLL ]
   INITPCC PCCMODE=SECondary [ POLL ]

   INITPCC PCCMODE=CONTIG     [ PCCIRQ=n | POLL ]
   INITPCC PCCMODE=CONTIG=xxx [ PCCIRQ=n | POLL ]

   INITPCC PCCMODE=MEMORY

Additional optional command line options are:

   DEBUG
   DUMPCIS
   DUMPREGS
   SYSMEM=yyyy

Options enclosed within brackets, [ and ], are optional.  The
vertical bar, |, indicates a choice between the two options
shown.

Each option is described below.

PCCMODE=PRImary

   Set up standard ATA Primary I/O at I/O port addresses
   1F0H-1F7H and 3F6H with IRQ number 14.

   DO NOT USE THIS OPTION IF THERE IS AN ATA HOST ADAPTER
   IN THE SYSTEM AT THE PRIMARY I/O ADDRESS.

PCCMODE=SECondary

   Set up standard ATA Secondary I/O at I/O port addresses
   170H-177H and 376H with IRQ number 15.

   DO NOT USE THIS OPTION IF THERE IS AN ATA HOST ADAPTER
   IN THE SYSTEM AT THE SECONDARY I/O ADDRESS.

PCCMODE=CONTIG
PCCMODE=CONTIG=xxx

   Set up Contiguous I/O mode at I/O port addresses xx0H to xxFH.
   If xxx is not specified, xxx defaults to 200H.  If xxx is
   specified, xxx must be in the range 100H to 3F0H and the
   rightmost digit of xxx must be a zero.

PCCMODE=MEMORY

   Set up Memory mode (the ATA I/O ports appear in a block of
   memory addresses and are access as if they are memory locations).
   INITPCC will report the segment:offset that was configured.
   Memory mode forces polling mode.

PCCIRQ=n

   PCCIRQ is used to specify the IRQ to be used in Contiguous I/O
   mode.  IRQ numbers 9, 10, 11, 12, 14 or 15 are supported.  The
   default is 12.  PCCIRQ is ignored in Primary, Secondary and
   Memory modes.

POLL

   Set up the PCIC for polling mode.  In polling mode no
   IRQ is configured and the PCCIRQ option is ignored.
   Memory mode forces polling mode.

DEBUG

   Trace messages will be produced that show all the I/O port
   activity used to set up the PCIC chip.

DUMPCIS

   The PCMCIA Card Information Structure (CIS) data is dumped.
   This data is in the first 512 bytes of the system/attribute
   memory area.  Note that the card configuration registers start
   at offset 200H in the system/attribute memory area.  Also note
   that this memory area exists in all PCMCIA PC Card ATA modes.

DUMPREGS

   The PCMCIA Card Configuration register and the ATA
   Command/Control Block registers are dumped.

SYSMEM=yyyy

   Specify the segment address for the PCMCIA system/attribute
   memory.  Valid values are c800, d000 and d800.  If not
   specified system memory between c800:0000 and d8ff:000f will
   be searched for an unused area.  Note that the PCMCIA Card
   Information Structure (CIS) data and the card configuration
   registers exist in this memory area.

EXAMPLES
--------

INITPCC PCCMODE=PRIMARY

   Sets up ATA primary mode using IRQ 14.

INITPCC PCCMODE=PRIMARY POLL SYSMEM=D000

   Sets up ATA primary mode with no IRQ. The PCMCIA
   system/attribute memory will be at d000:0000.

INITPCC PCCMODE=CONTIG=280 PCCIRQ=10

   Set up contiguous I/O mode at I/O port addresses
   280H-28FH using IRQ 10.

INITPCC PCCMODE=MEMORY DUMPCIS

   Set up memory mode and dump the PCMCIA CIS data.


QUESTIONS OR PROBLEMS?
----------------------

Send your question(s) or problem description(s) to Hale Landis
via email at this address:

   hlandis@ata-atapi.com

Visit Hale's web site:

   www.ata-atapi.com

/end/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -