summaryrefslogtreecommitdiffstats
path: root/sys/pccard/pcic.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2001-01-07 16:31:09 +0000
committerimp <imp@FreeBSD.org>2001-01-07 16:31:09 +0000
commitc64a2be70fb083f28ff734c23b53a9d6d264e808 (patch)
treebde7ab282a3b36cdf8309a3774fdb016367fb677 /sys/pccard/pcic.c
parenteef51d569a6dd444550e78d6c2ae6c04a585ce03 (diff)
downloadFreeBSD-src-c64a2be70fb083f28ff734c23b53a9d6d264e808.zip
FreeBSD-src-c64a2be70fb083f28ff734c23b53a9d6d264e808.tar.gz
o Now that I've had time to test the new interface, reintegrate it back in.
o Fix OLDCARD to use the new interface. o Rename the offsetp argument to deltap to more closely reflect what it is returning (it returns the delta from the requested value to the actual value). o Remove duplicate $FreeBSD$ in pccbb.c o Allow deltap to be NULL. o Convert new isa pcic driver and add XXX comments that this function isn't actually implemented there (which means that NEWCARD pccard stuff won't work there until it is). o Revert attempts to make old inferface work in NEWCARD. Subitted by: peter (Parts of the new version code)
Diffstat (limited to 'sys/pccard/pcic.c')
-rw-r--r--sys/pccard/pcic.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/pccard/pcic.c b/sys/pccard/pcic.c
index 8b5c934..4cc58cb 100644
--- a/sys/pccard/pcic.c
+++ b/sys/pccard/pcic.c
@@ -83,6 +83,7 @@ static struct pcic_slot {
static struct slot_ctrl cinfo;
static struct isa_pnp_id pcic_ids[] = {
+ {0x65374d24, NULL}, /* IBM3765 */
{PCIC_PNP_82365, NULL}, /* PNP0E00 */
{PCIC_PNP_CL_PD6720, NULL}, /* PNP0E01 */
{PCIC_PNP_VLSI_82C146, NULL}, /* PNP0E02 */
@@ -977,13 +978,15 @@ pcic_get_res_flags(device_t bus, device_t child, int restype, int rid,
}
static int
-pcic_set_memory_offset(device_t bus, device_t child, int rid, u_int32_t offset)
+pcic_set_memory_offset(device_t bus, device_t child, int rid, u_int32_t offset,
+ u_int32_t *deltap)
{
struct pccard_devinfo *devi = device_get_ivars(child);
struct mem_desc *mp = &devi->slt->mem[rid];
mp->card = offset;
-
+ if (deltap)
+ *deltap = 0; /* XXX BAD XXX */
return (pcic_memory(devi->slt, rid));
}
OpenPOWER on IntegriCloud