1/* $NetBSD: pcmciavar.h,v 1.9 1998/12/29 09:00:28 marc Exp $ */ |
2/* $FreeBSD: head/sys/dev/pccard/pccardvar.h 59389 2000-04-19 08:31:21Z imp $ */ |
3 4/* 5 * Copyright (c) 1997 Marc Horowitz. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright --- 19 unchanged lines hidden (view full) --- 30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/types.h> 34#include <sys/queue.h> 35 36#include <machine/bus.h> 37 |
38extern int pccard_verbose; 39 40/* 41 * Contains information about mapped/allocated i/o spaces. 42 */ 43struct pccard_io_handle { 44 bus_space_tag_t iot; /* bus space tag (from chipset) */ 45 bus_space_handle_t ioh; /* mapped space handle */ --- 8 unchanged lines hidden (view full) --- 54/* 55 * Contains information about allocated memory space. 56 */ 57struct pccard_mem_handle { 58 bus_space_tag_t memt; /* bus space tag (from chipset) */ 59 bus_space_handle_t memh; /* mapped space handle */ 60 bus_addr_t addr; /* resulting address in bus space */ 61 bus_size_t size; /* size of mem space */ |
62 bus_size_t realsize; /* how much we really allocated */ 63 long offset; 64 int kind; 65}; 66 67/* pccard itself */ 68 69#define PCCARD_CFE_MWAIT_REQUIRED 0x0001 --- 48 unchanged lines hidden (view full) --- 118 STAILQ_HEAD(, pccard_config_entry) cfe_head; 119 STAILQ_ENTRY(pccard_function) pf_list; 120 /* run-time state */ 121 struct pccard_softc *sc; 122 struct pccard_config_entry *cfe; 123 struct pccard_mem_handle pf_pcmh; 124#define pf_ccrt pf_pcmh.memt 125#define pf_ccrh pf_pcmh.memh |
126#define pf_ccr_realsize pf_pcmh.realsize 127 bus_addr_t pf_ccr_offset; 128 int pf_ccr_window; 129 long pf_mfc_iobase; 130 long pf_mfc_iomax; 131 int (*ih_fct)(void *); 132 void *ih_arg; 133 int ih_ipl; --- 18 unchanged lines hidden (view full) --- 152#define PCCARD_VENDOR_INVALID -1 153 int32_t product; 154#define PCCARD_PRODUCT_INVALID -1 155 u_int16_t error; 156#define PCCARD_CIS_INVALID { NULL, NULL, NULL, NULL } 157 STAILQ_HEAD(, pccard_function) pf_head; 158}; 159 |
160#define PCCARD_MEM_ATTR 1 161#define PCCARD_MEM_COMMON 2 162 163#define PCCARD_WIDTH_AUTO 0 164#define PCCARD_WIDTH_IO8 1 165#define PCCARD_WIDTH_IO16 2 166 |
167/* More later? */ 168struct pccard_ivar { 169 struct resource_list resources; 170 int slotnum; 171}; 172 173struct pccard_softc { 174 device_t dev; --- 117 unchanged lines hidden --- |