diff options
author | phk <phk@FreeBSD.org> | 1995-10-10 09:57:47 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1995-10-10 09:57:47 +0000 |
commit | f20c8026acbc42b58662c10ed1290de00da61dff (patch) | |
tree | 52ef7e823fc505fc8460dc280004332a0b85b12a /usr.sbin/pccard/pccardd | |
parent | 11529bae0029e7484267df5b331ace754e689e56 (diff) | |
download | FreeBSD-src-f20c8026acbc42b58662c10ed1290de00da61dff.zip FreeBSD-src-f20c8026acbc42b58662c10ed1290de00da61dff.tar.gz |
Minor tweaks to get ethernet working too.
Diffstat (limited to 'usr.sbin/pccard/pccardd')
-rw-r--r-- | usr.sbin/pccard/pccardd/cardd.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/pccard/pccardd/cardd.c b/usr.sbin/pccard/pccardd/cardd.c index bcb1f47..77c718b 100644 --- a/usr.sbin/pccard/pccardd/cardd.c +++ b/usr.sbin/pccard/pccardd/cardd.c @@ -282,7 +282,9 @@ struct card *cp; log_1s("Error reading CIS on %s\n", sp->name); return; } +/* dumpcis(sp->cis); +*/ for (cp = cards; cp; cp = cp->next) if (strcmp(cp->manuf, sp->cis->manuf) == 0 && strcmp(cp->version, sp->cis->vers) == 0) @@ -595,10 +597,11 @@ int rw_flags; usleep(sp->card->reset_time*1000); lseek(sp->fd, offs, SEEK_SET); c = sp->config->index; +c |= 0x40; write(sp->fd, &c, sizeof(c)); #ifdef DEBUG - printf("Setting config reg at offs 0x%x to 0x%x\n", - offs, c); + printf("Setting config reg at offs 0x%x", offs); + printf(" to 0x%x\n",c); printf("Reset time = %d ms\n", sp->card->reset_time); #endif sleep(5); @@ -627,7 +630,7 @@ int rw_flags; if (sp->mem.addr) { mem.window = 0; - mem.flags = sp->mem.flags | MDF_ACTIVE; + mem.flags = sp->mem.flags | MDF_ACTIVE | MDF_16BITS; mem.start = (caddr_t)sp->mem.addr; mem.card = sp->mem.cardaddr; mem.size = sp->mem.size; |