Commit Graph

1194 Commits

Author SHA1 Message Date
rpaulo
e54bb9fc0c Comment out wl. 2006-04-26 16:19:52 +00:00
christos
7fad94d825 Coverity CID 1111: Fix cut'n'paste bug! 2006-04-14 17:50:27 +00:00
christos
4be84f7cdb Coverity CID 1112: If we did not get a packet, bail out early. 2006-04-14 17:46:29 +00:00
christos
af27d5132b Coverity CID 773: Add a KASSERT to appease coverity. 2006-04-14 17:42:29 +00:00
christos
4b5dc3b5a8 - wrap memspace {}, pointed out by rui.
- comment out the memspace none case, pointed out by rui.
- move declarations to the top to avoid brace mess.
2006-04-08 20:55:22 +00:00
christos
c2909c51dd Split the tuple parsing code in its own function for each kind, instead of
having a single parsing function that has more than 1000 lines of code.
2006-04-08 20:01:21 +00:00
rpaulo
abddbf01be Back out rev 1.42 and 1.43. It's been causing much more hassle than it should
and I don't feel like continue arguing about it.
2006-04-08 15:59:59 +00:00
rpaulo
2fdcdded0b Add misssing }. Sorry for breaking the build. 2006-04-06 22:35:47 +00:00
rpaulo
ed268c60d0 In pcmcia_parse_cis_tuple(), refactor the memspace section introducing
a switch statement and fixing CID 566.
2006-04-06 18:06:43 +00:00
thorpej
78ffd948be Replace device_locators() with device_locator(), and use it. 2006-03-29 06:00:46 +00:00
bouyer
ff4b8c4e53 As we are going to sleep here, we need to use
config_pending_incr()/config_pending_decr() so that disks are probed
before trying to mount root, if the card is plugged in at boot time.
Should fix kern/33137 by KIYOHARA Takashi.
2006-03-26 15:34:19 +00:00
thorpej
6e53f1366a Use device_parent(). 2006-03-25 23:14:58 +00:00
christos
6883d3cdd3 Regen 2006-03-23 02:15:05 +00:00
christos
c40c4c462e PR/33133: Dave J. Barnes: Belkin F5D5020 Ethernet PCMCIA card not recognised 2006-03-23 02:14:42 +00:00
gdamore
39b794a41d When unmapping and remapping, the mem handle and mem tags can change. Do
not assume that they will remain the same.
2006-02-23 03:20:53 +00:00
gdamore
3ca20d0b44 Add new ihandle member to pcmcia_io_handle, similar to pcmcia_mem_handle's
mhandle structure.  This is for opaque use by pcmcia chipsets.
2006-02-23 03:18:42 +00:00
thorpej
3ddf26777f Use device_is_active() rather than testing dv_flags for DVF_ACTIVE
directly.
2006-02-20 16:50:36 +00:00
christos
8918ce44a0 Default to 2 drives for products not listed. 2006-01-22 00:08:38 +00:00
bouyer
bf1a4d2af5 properly use ata_channel->ch_ndrive:
- initialize it properly in the bus front-ends (all 2, exept in wdc_pcmcia.c
  for the "Sandisk CompactFlash Card" where it's set to 1)
- remplace hardcoded '2' by ata_channel->ch_ndrive in MI IDE drivers.

From Christos Zoulas in kern/32501.
2006-01-16 20:30:18 +00:00
christos
e35d1933fb Add SanDisk pcmcia memory card adapter. Works like an IDE drive.
XXX: Linux driver has a hack not to probe the slave drive. We just
create a phantom drive:

    wdc0 at pcmcia0 function 0: <             , Memory Card Adapter II, V1.00>
    wdc0: i/o mapped mode
    atabus2 at wdc0 channel 0
    wd1 at atabus2 drive 0: <Memory Card Adapter II>
    wd1: drive supports 1-sector PIO transfers, LBA addressing
    wd1: 241 MB, 965 cyl, 16 head, 32 sec, 512 bytes/sect x 494080 sectors
    wd2 at atabus2 drive 1: <>
    wd2: drive supports 1-sector PIO transfers, chs addressing
    wd2: 0, 0 cyl, 0 head, 0 sec, 512 bytes/sect x 0 sectors
    wd2: 32-bit data port
    wd2: disk label read failed
    wd2: disk label read failed
2006-01-11 13:34:33 +00:00
perry
93124077ae Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:27:29 +00:00
christos
95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
tsutsui
fe35cfd50c Regen from pcmciadevs rev 1.213:
> Fix pp_cisinfo[0] of the TEAC IDECARDII entry.
> If pp_cisinfo[0] is NULL, current pcmcia_product_lookup()
> never matches the device.
2005-11-07 16:39:16 +00:00
tsutsui
cf09fb3893 Fix pp_cisinfo[0] of the TEAC IDECARDII entry.
If pp_cisinfo[0] is NULL, current pcmcia_product_lookup()
never matches the device.
2005-11-07 16:37:28 +00:00
jdc
0dbca227cf Change memoff to bus_size_t (like all other PCMCIA devices).
Now compiles on sparc too.
2005-10-06 20:54:31 +00:00
christos
ac3f544e6d fix compilation with debugging on. 2005-09-08 18:41:50 +00:00
drochner
49a3609892 kill some more simple submatch() functions, use config_stdsubmatch() 2005-08-26 11:20:33 +00:00
drochner
49126e9efe use XXXCF_NLOCS constants instead of magic numbers 2005-08-26 11:01:42 +00:00
drochner
e6a178f21f kill a number of autoconf submatch functions which follow the
standard scheme:
if (<configured> != <wildcard> && <configured> != <real>)
	then fail
else
	ask device match function

This is handled by config_stdsubmatch() now.
2005-08-25 22:33:18 +00:00
drochner
fa3cb84d62 replace the "locdesc_t" structure carrying the number of locators
explicitely by a plain integer array
the length in now known to all relevant parties, so this avoids
duplication of information, and we can allocate that thing in
drivers without hacks
2005-08-25 18:35:38 +00:00
christos
aef258e0aa PR/30995: Wada Keiji: pcmcia interface can't use ne2000 compatible card
Call pcmcia_socket_settype sooner. I removed the later call, so the submitter
should test the final code before I close the PR.
2005-08-15 18:58:24 +00:00
christos
d39684a368 make the isdn drivers compile again with -Wconst, -Wshadow 2005-07-09 02:05:09 +00:00
dyoung
674e9b926b Identify Alvarion Ltd. BreezeNET PC-DS.11b. Addresses kern/30231. 2005-07-06 07:16:00 +00:00
dyoung
b01131baed Regen. 2005-07-06 07:06:29 +00:00
dyoung
b34605c1a7 Add Alvarion (vendor) and Alvarion Ltd. BreezeNET PC-DS.11b (product).
From PR kern/30231.
2005-07-06 07:05:25 +00:00
martin
5d90a83160 constify 2005-07-01 15:05:07 +00:00
dyoung
9063402978 Resolve conflicts in importation of 18-May-2005 ath(4) / net80211(9)
from FreeBSD.  Introduce compatibility shims (sys/dev/ic/ath_netbsd.[ch],
sys/net80211/ieee80211_netbsd.[ch]).  Update drivers (an, atu, atw,
awi, ipw, iwi, rtw, wi) for the new net80211(9) API.
2005-06-22 06:14:51 +00:00
bouyer
3d0edb52b9 When the PCMCIA socket is powered up, the driver waits for the PCMCIA
controller to be ready, but the drive attached to it may not be ready yet.
Add a half a second delay before calling wdcattach(), to let the drive
have its electronic ready to properly respond to the register tests done
in wdcprobe1(). Delay based on experiments done by John Refling with
various devices as part of the audit-trail of kern/25659; complete
the fix for kern/25659.
2005-06-19 18:19:19 +00:00
itohy
8202086879 cc1: warnings being treated as errors
../../../../dev/pcmcia/if_wi_pcmcia.c: In function `wi_pcmcia_write_firm':
../../../../dev/pcmcia/if_wi_pcmcia.c:511: warning: cast discards qualifiers from pointer target type
../../../../dev/pcmcia/if_wi_pcmcia.c:512: warning: cast discards qualifiers from pointer target type
2005-06-10 14:08:06 +00:00
drochner
31924c84cd cast-qual fallout 2005-05-31 19:20:37 +00:00
christos
097e6576ea - add const
- avoid variable shadow
- do proper UNCONST with XXXUNCONST
2005-05-30 04:28:49 +00:00
martin
7d47b99684 Add SMC2531W-B EliteConnect Wireless Adapter.
From Matthias Petermann in PR kern/30001.
2005-05-07 17:02:47 +00:00
martin
82e51b8933 Regen. 2005-05-07 17:01:11 +00:00
martin
714292a59f Add SMC2531W-B EliteConnect Wireless Adapter.
From Matthias Petermann in PR kern/30001.
2005-05-07 16:59:11 +00:00
jmcneill
adf922e656 Update my email address (the one listed hasn't been active in years). 2005-03-24 22:31:58 +00:00
martin
71cce6ecd0 Add support for Proxim RangeLAN-DS 8430;
from Gabriel Forté, via Julien Rampon on tech-net
2005-03-23 12:00:22 +00:00
martin
8e03193d1b Regen (Proxim RangeLAN-DS 8430 added) 2005-03-23 11:59:38 +00:00
martin
a16552ce02 From Gabriel Forté, via Julien Rampon in mail to tech-net:
add Proxim RangeLAN-DS 8430
2005-03-23 11:58:56 +00:00
christos
d1ff4d2389 Regen 2005-03-19 22:00:27 +00:00
christos
5412502bb7 PR/29482: Kirk Strauser: Add support for Microsoft MN-520 PCMCIA WLAN card 2005-03-19 21:59:56 +00:00