summaryrefslogtreecommitdiffstats
path: root/sys/pccard/i82365.h
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2000-03-10 05:43:29 +0000
committerimp <imp@FreeBSD.org>2000-03-10 05:43:29 +0000
commit9e00c5a8a4336dd50e1395c09a41b863715add04 (patch)
treeb174a47fb5155379e277c15d593fbd192772021b /sys/pccard/i82365.h
parent195345c22ce4534433beb65ed1bb210c249264c1 (diff)
downloadFreeBSD-src-9e00c5a8a4336dd50e1395c09a41b863715add04.zip
FreeBSD-src-9e00c5a8a4336dd50e1395c09a41b863715add04.tar.gz
Add support for PnP ISA cards, and some laptop PnP support:
o break out some of the probe routine the allocation of resources into an attach routine o Recognize PnP ids o Allocate IRQ per card rather than per system o Better polling reporting o Remove unneeded include files in slot.h o store a pseudo unit number on each device we find. o Pass a unit number to interrupt/timeout routine and use it for polling the hardware. Tested on: My VAIO and with the Linksys pccard reader. Approved by: jkh
Diffstat (limited to 'sys/pccard/i82365.h')
-rw-r--r--sys/pccard/i82365.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/pccard/i82365.h b/sys/pccard/i82365.h
index 27b2b45..f3012ef 100644
--- a/sys/pccard/i82365.h
+++ b/sys/pccard/i82365.h
@@ -31,6 +31,8 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * $FreeBSD$
*/
#define PCIC_I82365 0 /* Intel chip */
@@ -59,10 +61,11 @@
* identify the port number, and the lower 6 bits
* select one of the 64 possible data registers.
*/
-#define PCIC_INDEX_0 0x3E0 /* index reg, chips 0 and 1 */
+#define PCIC_INDEX_0 0x3e0 /* index reg, chips 0 and 1 */
#define PCIC_DATA_0 (PCIC_INDEX_0 + 1) /* data reg, chips 0 and 1 */
#define PCIC_INDEX_1 (PCIC_INDEX_0 + 2) /* index reg, chips 2 and 3 */
#define PCIC_DATA_1 (PCIC_INDEX_1 + 1) /* data reg, chips 2 and 3 */
+
/*
* Register index addresses.
*/
@@ -223,4 +226,6 @@
#define PCIC_IO_WIN 2
#define PCIC_MEM_WIN 5
-#define PCIC_MAX_SLOTS 8
+#define PCIC_CARD_SLOTS 4
+#define PCIC_MAX_CARDS 2
+#define PCIC_MAX_SLOTS (PCIC_MAX_CARDS * PCIC_CARD_SLOTS)
OpenPOWER on IntegriCloud