Commit Graph

24835 Commits

Author SHA1 Message Date
christos
4c2b1bf33a PR/39885: Sébastien Bocahu: add R500 chips support 2008-11-09 02:35:42 +00:00
christos
2688948f51 regen. 2008-11-08 17:27:15 +00:00
christos
71ede8ab96 Support for Intel G35 as found on Asus P5E-VM HDMI motherboard from
Milos Negovanovic
2008-11-08 17:26:28 +00:00
dyoung
8e791deb98 To finish the device_t/softc split, convert some casts to struct
auich_softc * to device_private() calls.
2008-11-08 00:26:35 +00:00
he
761f38db5c In wsdisplay_kbdholdscreen(), just return if sc->sc_focus is NULL.
There is apparently no guarantee sc->sc_focus will be non-NULL,
as proved by a crash I experienced earlier today (admittedly on 4.0.1).
2008-11-07 19:33:13 +00:00
joerg
866b295da8 Match image name with upstream distfiles. 2008-11-07 14:58:27 +00:00
dyoung
de87fe677d *** Summary ***
When a link-layer address changes (e.g., ifconfig ex0 link
02🇩🇪ad:be:ef:02 active), send a gratuitous ARP and/or a Neighbor
Advertisement to update the network-/link-layer address bindings
on our LAN peers.

Refuse a change of ethernet address to the address 00:00:00:00:00:00
or to any multicast/broadcast address.  (Thanks matt@.)

Reorder ifnet ioctl operations so that driver ioctls may inherit
the functions of their "class"---ether_ioctl(), fddi_ioctl(), et
cetera---and the class ioctls may inherit from the generic ioctl,
ifioctl_common(), but both driver- and class-ioctls may override
the generic behavior.  Make network drivers share more code.

Distinguish a "factory" link-layer address from others for the
purposes of both protecting that address from deletion and computing
EUI64.

Return consistent, appropriate error codes from network drivers.

Improve readability.  KNF.

*** Details ***

In if_attach(), always initialize the interface ioctl routine,
ifnet->if_ioctl, if the driver has not already initialized it.
Delete if_ioctl == NULL tests everywhere else, because it cannot
happen.

In the ioctl routines of network interfaces, inherit common ioctl
behaviors by calling either ifioctl_common() or whichever ioctl
routine is appropriate for the class of interface---e.g., ether_ioctl()
for ethernets.

Stop (ab)using SIOCSIFADDR and start to use SIOCINITIFADDR.  In
the user->kernel interface, SIOCSIFADDR's argument was an ifreq,
but on the protocol->ifnet interface, SIOCSIFADDR's argument was
an ifaddr.  That was confusing, and it would work against me as I
make it possible for a network interface to overload most ioctls.
On the protocol->ifnet interface, replace SIOCSIFADDR with
SIOCINITIFADDR.  In ifioctl(), return EPERM if userland tries to
invoke SIOCINITIFADDR.

In ifioctl(), give the interface the first shot at handling most
interface ioctls, and give the protocol the second shot, instead
of the other way around. Finally, let compatibility code (COMPAT_OSOCK)
take a shot.

Pull device initialization out of switch statements under
SIOCINITIFADDR.  For example, pull ..._init() out of any switch
statement that looks like this:

        switch (...->sa_family) {
        case ...:
                ..._init();
                ...
                break;
        ...
        default:
                ..._init();
                ...
                break;
        }

Rewrite many if-else clauses that handle all permutations of IFF_UP
and IFF_RUNNING to use a switch statement,

        switch (x & (IFF_UP|IFF_RUNNING)) {
        case 0:
                ...
                break;
        case IFF_RUNNING:
                ...
                break;
        case IFF_UP:
                ...
                break;
        case IFF_UP|IFF_RUNNING:
                ...
                break;
        }

unifdef lots of code containing #ifdef FreeBSD, #ifdef NetBSD, and
#ifdef SIOCSIFMTU, especially in fwip(4) and in ndis(4).

In ipw(4), remove an if_set_sadl() call that is out of place.

In nfe(4), reuse the jumbo MTU logic in ether_ioctl().

Let ethernets register a callback for setting h/w state such as
promiscuous mode and the multicast filter in accord with a change
in the if_flags: ether_set_ifflags_cb() registers a callback that
returns ENETRESET if the caller should reset the ethernet by calling
if_init(), 0 on success, != 0 on failure.  Pull common code from
ex(4), gem(4), nfe(4), sip(4), tlp(4), vge(4) into ether_ioctl(),
and register if_flags callbacks for those drivers.

Return ENOTTY instead of EINVAL for inappropriate ioctls.  In
zyd(4), use ENXIO instead of ENOTTY to indicate that the device is
not any longer attached.

Add to if_set_sadl() a boolean 'factory' argument that indicates
whether a link-layer address was assigned by the factory or some
other source.  In a comment, recommend using the factory address
for generating an EUI64, and update in6_get_hw_ifid() to prefer a
factory address to any other link-layer address.

Add a routing message, RTM_LLINFO_UPD, that tells protocols to
update the binding of network-layer addresses to link-layer addresses.
Implement this message in IPv4 and IPv6 by sending a gratuitous
ARP or a neighbor advertisement, respectively.  Generate RTM_LLINFO_UPD
messages on a change of an interface's link-layer address.

In ether_ioctl(), do not let SIOCALIFADDR set a link-layer address
that is broadcast/multicast or equal to 00:00:00:00:00:00.

Make ether_ioctl() call ifioctl_common() to handle ioctls that it
does not understand.

In gif(4), initialize if_softc and use it, instead of assuming that
the gif_softc and ifp overlap.

Let ifioctl_common() handle SIOCGIFADDR.

Sprinkle rtcache_invariants(), which checks on DIAGNOSTIC kernels
that certain invariants on a struct route are satisfied.

In agr(4), rewrite agr_ioctl_filter() to be a bit more explicit
about the ioctls that we do not allow on an agr(4) member interface.

bzero -> memset.  Delete unnecessary casts to void *.  Use
sockaddr_in_init() and sockaddr_in6_init().  Compare pointers with
NULL instead of "testing truth".  Replace some instances of (type
*)0 with NULL.  Change some K&R prototypes to ANSI C, and join
lines.
2008-11-07 00:20:01 +00:00
cegger
1f7782b4ba wrap lines. no functional change. 2008-11-06 17:50:59 +00:00
blymn
3286a94bad Move init of essid to the attach code. 2008-11-06 12:03:43 +00:00
hannken
a797621996 fss_bs_thread: initialize b_error and b_resid.
Before it was possible for fss reads to return bogus b_resid values
leading to "delta > 0" panics from physio().
2008-11-05 19:30:57 +00:00
blymn
57e1492b11 * Disable aborting the scan for the moment - it causes a firmware error if
a scan was never initiated which breaks WEP and open wireless connections
* Make sure the ESSID is cleared.
2008-11-05 09:42:20 +00:00
pgoyette
287fe7d56d Fix cut&paste error in prev 2008-11-04 22:16:15 +00:00
pgoyette
3880525312 Restore previous behavior concerning CRITICAL events. Send an event
whenever state enters or exits CRITICAL, or whenever value of sensor
changes while the state is CRITICAL.
2008-11-04 22:06:10 +00:00
reinoud
3a0f6cde46 Implement powersave for ixpide(4). Tested it on an Asus IXP250 with IGP.
It seems to sleep and awake fine now without errors or warnings.
2008-11-04 16:05:29 +00:00
cegger
bae2482c7f regen. 2008-11-04 13:23:41 +00:00
cegger
982f9b9410 fix typo in previous: prodcut -> product 2008-11-04 13:22:29 +00:00
cegger
b8c4e4c3fe regen. 2008-11-04 12:30:54 +00:00
cegger
2fdc34ba95 add ATI RD790 and RD890 chipset ids 2008-11-04 12:30:07 +00:00
bjs
bedd1969ee Allow writing to register R300_VAP_PVS_WAITIDLE; allows
r300 driver to work with Mesa-7.2!
2008-11-04 02:26:44 +00:00
tls
ccd72c0274 Remove include of useless i386/include/clock.h which broke builds on
other architectures.
2008-11-03 04:31:01 +00:00
hans
f8681c958c Initialize sc->sc_dev before using it, and use it as argument for the
interrupt handler. Makes this work again. OK by christos.
2008-11-01 20:31:26 +00:00
hans
f86fa4502c Make the driver work (except for setting display brightness) on older
machines by removing the check for the CMOS method from thinkpad_match.
OK by jmcneill.
2008-11-01 19:22:25 +00:00
nakayama
0b0fb12976 Add dependency on sysmon_envsys to admtemp. 2008-10-30 12:52:46 +00:00
darran
0e11c6bfd5 NetOctave NSP2000 driver, ported from FreeBSD and integrated with
opencrypto by CoyotePoint Systems.  The FreeBSD driver source was recently
made available by NBMK Encryption Technologies.

The port includes some currently unused code which implements kernel and
user space interfaces for the driver in FreeBSD.  These are left in at this
time to facilitate the port of these interface to NetBSD if they are of
interest.
2008-10-30 12:02:14 +00:00
joerg
68ab5fbb16 Add glue to ship Intel firmware images. For ipw and iwi require user to
accept the EULA via sysctl as discussed with core@.
2008-10-30 00:27:31 +00:00
jkunz
fb8ec4c35a Ported alipm(4) and admtemp(4) from OpenBSD. 2008-10-29 17:26:56 +00:00
joerg
71e504882f Remove E220 quirk -- u3g(4) does implement that directly. 2008-10-27 21:46:43 +00:00
christos
56c00d466d another TI bridge. 2008-10-25 18:46:38 +00:00
matt
17996c3ca8 Simplify NOERS case. Revert most changes back to 1.283. 2008-10-25 17:50:29 +00:00
christos
e8d515e422 regen. 2008-10-25 17:37:31 +00:00
christos
b311f98821 The Sierra Wireless USBConnect 881 card presents itself as umass containing
the driver to be installed for it. We don't need this crap. Tell it to become
a modem.
2008-10-25 17:35:44 +00:00
tsutsui
9cb64a72eb Fix a botch in an FIFO check for 16650. 2008-10-25 15:21:57 +00:00
he
833cc988ed Replace a "type" with "sc->sc_type" to make this build again for cobalt
(and I'm sure a few others as well).
2008-10-25 10:05:43 +00:00
matt
f759cc96ec Add support for 16550 chips without an Enhanced Register Set. 2008-10-24 04:43:08 +00:00
bouyer
3e37931111 Change mfi_mgmt() to take a mfi_ccb and scsipi_xfer as argument, as
mfi_scsi_io does. Do not tsleep in mfi_mgmt waiting for completion;
let the caller handle it. If mfi_mgmt() is called with a non-NULL scsipi_xfer
have mfi_mgmt_done() wake it up, else wake up the mfi_ccb.
mfi_poll()/mfi_post() is up to the caller.

mfi_scsipi_request(): handle SCSI_SYNCHRONIZE_CACHE_10 as we do for other
commmands: have mfi_mgmt() fill in the ccb, queue of poll the ccb and
return.

Introduce mfi_mgmt_internal() which behaves like mfi_mgmt() did (tsleep
waiting for completion). Use it for internal and ioctl management
requests.

Fix kern/39297 from Greg Oster (mfi calls tsleep() from mfi_intr()),
tested by Mark Davies.
2008-10-23 21:00:06 +00:00
jakllsch
76a01a44a6 Allow wedges to be created for all defined partitions on a GPT disk.
Use __arraycount on the GUID to type mapping array.
Add HFS to the list of types with dkw_ptypes.

reviewed by cube.
2008-10-23 19:37:40 +00:00
cegger
f982353b74 regen. (how is it possible to have conflicts in the repo in a generated file?) 2008-10-22 12:10:48 +00:00
haad
543e3d0539 Add HL-340 usb2Serial addapter. 2008-10-22 10:35:50 +00:00
haad
b392ebc9c0 I forgot to commit this after regen. 2008-10-22 10:33:20 +00:00
haad
27418aa546 Regen. 2008-10-22 10:27:28 +00:00
haad
49e162a888 Add product/vendor ID for my USB2serial adapter. 2008-10-22 10:23:51 +00:00
jun
3caafa9653 Add
corega K.K CG-WLUSB2GPX
2008-10-21 12:20:44 +00:00
macallan
eab8a03193 regen 2008-10-21 06:04:37 +00:00
macallan
d0fc6875dc add 1152x900 at 66Hz and 76Hz 2008-10-21 06:03:39 +00:00
rtr
e9a223cbb9 - fix crazy condition that always evaluates to false without this
iwn_fix_channel() never gets called.
- remove hardcode to ic->ic_channels[11]

fixes a problem in associating to access points
2008-10-20 09:33:48 +00:00
apb
96230fab84 Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
2008-10-19 22:05:19 +00:00
jmcneill
48100f10e4 Calculate maxdispoffset rather than hard-coding it. Fixes scrolling in
80x25 mode.

XXX This doesn't handle odd modes like 80x30 on 640x480, but the driver
didn't allow that selection previously so at least it's an improvement
over the previous behaviour.
2008-10-19 17:47:38 +00:00
jmcneill
0215b24d60 vga_cnattach: calling wsdisplay_screentype_pick with a NULL type will
select the first entry in the list, which overrides the selected screen
type. Only call it a second time if the original selection is invalid.
2008-10-19 17:20:38 +00:00
joerg
7e64fc36e4 Remove two devices that are handled by ubsa and might need special
handling from u3g until further reports. Move a number of data cards
from ugensa to u3g based on the FreeBSD list.
2008-10-19 11:40:02 +00:00
joerg
5519d99b9a Regen. 2008-10-19 11:37:44 +00:00
joerg
74069cabed Sync list of 3G cards with FreeBSD. 2008-10-19 11:36:11 +00:00
bouyer
b54b5daec9 kern/39757 from mishka@:
Bump CISS_MAX_CDB from 12 to 16 bytes. For volumes larger than 2TB,
the scsipi layer will have to use 16 bytes SCSI commands, which would be
rejected by ciss. The cdb buffer already 16 bytes long, and a look at the
FreeBSD driver shows there's no reasons to limit SCSI commands to 12 bytes.
2008-10-18 18:53:20 +00:00
jmcneill
e38f75f075 Add fan sensor support, from Thomas E. Spanjaard 2008-10-18 16:35:40 +00:00
blymn
2352db325b Make scan abort command async as newstate is called from an interrupt
context so we cannot ltsleep.
2008-10-18 15:55:27 +00:00
joerg
f48b5b12a3 Make u3g send an eject command to Novatel MC950D devices. Explicitly
attach as device for umass mode on MC950D and the Huawei devices to
supersede the umass quirk.
2008-10-18 09:43:44 +00:00
christos
3bab625c77 add missing free. 2008-10-17 17:15:09 +00:00
abs
3a8955a63e Fix compilation if !INET6 2008-10-16 21:22:32 +00:00
bouyer
2a95f206c2 Regen: fix entry description. 2008-10-15 18:31:16 +00:00
bouyer
dd0d5e5a64 Fix entry description. 2008-10-15 18:30:29 +00:00
bouyer
34fc5ca03c Regen: add more ICH9 ethernet devices. 2008-10-15 17:34:51 +00:00
bouyer
cf67af4a36 Add support for more ethenet ICH9 devices. Tested by Pouya D. Tafti
on a 82801I_IGP_M_AMT.
2008-10-15 17:32:04 +00:00
wrstuden
fc7511b00e Merge wrstuden-revivesa into HEAD. 2008-10-15 06:51:17 +00:00
pgoyette
6bd90145d1 If we're doing a 2-byte read, return the entire 16-bit result. 2008-10-15 02:21:48 +00:00
jmcneill
e2728f33e6 ehci_dump_itd and _sitd are unused 2008-10-14 18:32:53 +00:00
jmcneill
b8aea8193c kern/39727: race condition in ehci isoc abort xfer path
From Jeremy Morse:

  * Serialize access to the ehci intrlist.
  * Change the ehci intrlist to a tailq so xfers are not queued out of order.
  * In ehci_check_itd_intr, don't treat a transfer error as an indication
    that the xfer is no longer active.
2008-10-14 18:12:38 +00:00
bjs
8ff9ca028e Fix handling of lists with a single entry in list_for_each_safe();
this also plugs a memory leak.
2008-10-14 14:55:28 +00:00
bouyer
49f5440bbe Add support for jumbo frames.
Some performances tweaks (including better defaults for interrupt mitigation)
2008-10-13 17:57:32 +00:00
pgoyette
54a63b92b0 Fix up the bus-independant probe code. Patch from njoly@ 2008-10-13 12:44:46 +00:00
blymn
f4f3894a02 DMA fixes thanks to rtr & skrll
Don't set tsf in auth, this stops firmware errors on WPA renegotiation
Various other tweaks that the linux driver seems to have that we did not
2008-10-13 12:41:45 +00:00
blymn
b7f2d89842 Correct beacon structure
Add scan abort command
Add TX status codes from FreeBSD driver
2008-10-13 12:39:26 +00:00
pgoyette
fffe1c84a7 Remove duplicated copy of the file - no idea where it came from. 2008-10-13 11:16:00 +00:00
is
93d402c342 Load firmware from .../firmware/stuirda, not ../uirda, to avoid confusion. 2008-10-13 10:01:24 +00:00
pgoyette
72ef407c2a Consistent use of softc member name - fixes build breakage from previous. 2008-10-12 23:07:32 +00:00
martin
e1ae3c4114 Move printing of the "polling" message at attach time out of the wrong if
scope, so that it is actually printed even in non-error cases.
Suggested by jmcneill.
2008-10-12 19:01:01 +00:00
pgoyette
eacec974a3 Add an i2c attachment for the LM78 family of temp sensor/fan control
Tested by Martin Husemann
2008-10-12 13:17:28 +00:00
pgoyette
a3cdedf605 Move the {read,write}reg() routine addresses into the dbcool_softc so
that we can use different routines for macppc's ki2c attachment.  Fixes
problems reported by Robert Fritzsche on current-users@ list.
2008-10-12 12:49:04 +00:00
bouyer
7940b74931 Fix reading MAC address from eeprom: don't forget to read the last
descriptor.
While there, white space fixes.
2008-10-12 11:27:12 +00:00
dholland
ba8d06c990 Fix mangled attach output. Noted by Jari Kuittinen. 2008-10-12 02:15:02 +00:00
bouyer
540cab1ec8 jme(4), a driver for JMicron Technologies JME250 Gigabit Ethernet and
JME260 Fast Ethernet PCI Express controllers.
Written with a lot of cut-n-paste from the FreeBSD jme(4) driver.
No support for jumbo ethernet frames yet (but should come soon).
Thanks to JMicron Technologies for providing me sample boards and
documentation for this work.
2008-10-11 21:54:11 +00:00
dholland
f446f1c471 Print a message on two previously silent error paths in auvia_attach. 2008-10-11 20:08:15 +00:00
jmcneill
c93dbbaca8 Revert previous. 2008-10-11 13:56:51 +00:00
jmcneill
55c0ca3b69 ehci_check_itd_intr: correct logic for checking for active itds 2008-10-11 05:17:12 +00:00
jmcneill
5b4aed5dc9 If we're not dealing with an interrupt endpoint, invoke the xfer's
callback after calling the xfer's done method to give the device driver
a change to reschedule the same xfer, from FreeBSD.
2008-10-11 05:07:20 +00:00
jakllsch
c53df256ca regen 2008-10-10 23:53:19 +00:00
jakllsch
aaa79600f5 add Pinnacle Systems, Inc. and their PCTV HD Pro Stick (800e)
ok jmcneill
2008-10-10 23:50:39 +00:00
jmcneill
14f8dc1c88 regen 2008-10-10 22:49:30 +00:00
jmcneill
13371a99c0 Add ATI/AMD TV Wonder 600 and Empia Technology EM2883 product IDs 2008-10-10 22:28:53 +00:00
jmcneill
c223922bd6 Make cirpoll work. 2008-10-10 21:50:09 +00:00
jmcneill
73e5218b04 cirkqfilter is not implemented, so remove any references to it so this
file will compile again
2008-10-10 21:07:52 +00:00
joerg
db5825abd5 Add u3g(4) driver from FreeBSD. This driver provides better support for
3G datacards than ugensa and will replace the latter for the supported
devices.
2008-10-10 16:37:15 +00:00
joerg
4c43f08c6f Regen. 2008-10-10 16:30:17 +00:00
joerg
fcc58fbfce Add entries for Vodafone Mobile Connect 3G datacard (from FreeBSD)
and for the Novatel 950D.
2008-10-10 16:29:57 +00:00
pgoyette
13579c9401 sysctl doesn't like names that start with digits, nor does it like names
with embedded '.' so change the names to be better-conforming.  Reported
by njoly
2008-10-10 13:08:29 +00:00
pgoyette
691525189c It's not necessary to #include "sysmon_envsys.h" any more. 2008-10-09 10:25:47 +00:00
oster
c68af69bbe Need to include sys/termios.h here too. 2008-10-08 16:11:23 +00:00
christos
f9657a08ed return ENOTTY instead of EOPNOTSUPP for ioctl(/dev/null, TIOCGETA)
from Andy Shevchenko
2008-10-08 14:42:56 +00:00
pgoyette
94ba92bdd7 Increase accuracy in nominal voltage table. 2008-10-07 22:50:33 +00:00
pgoyette
379328cb93 Remove chip-specific drivers for ADT7463, ADT7467, and ADM1030; these
have been superseded by the dbcool(4) driver.
2008-10-07 19:32:29 +00:00
jmcneill
04fec95922 ehci_free_itd: use LIST_INSERT_HEAD rather than
LIST_INSERT_AFTER(LIST_FIRST(..), ..) when returning itds to the freelist
to prevent a crash when the freelist is empty. Reviewed by Jeremy Morse.
2008-10-06 02:21:50 +00:00
pgoyette
aef4db128d Various clean-ups:
1. Trange sysctl's belong to the temp sensors, not to the fan controllers
  2. Trange really describes a slope on many chips, so modify the description
  3. Most of the sysctl's are read/write even if the chip's config is
     locked;  reflect that in the CTLFLAGs
  4. Apply correct 'nominal' values for voltage sensors/limits, specify
     them in microVolts, and calculate once rather than each time needed
  5. Be more consistent in register names - for example, use VCC instead of
     SUPPLY_VOLTAGE, to match VCC_LOWLIM & VCC_HIGHLIM
  6. Type of dbcool_islocked() should be bool, not int
  7. Reduce some unnecessary code indentation
  8. Define Vtt and Imon, and add ADT7490 support (excluding PECI sensors)
  9. Split the huge (250+ lines) dbcool_setup() function into a few smaller
     routines for better readability
 10. Update sensor tables for ADT7476 and ADT7468 - these chips have five
     voltage sensors, not two
 11. Adjust flags for ADT7463 and ADM1027 - these chips can monitor CPU
     VID data bits
 12. Update man page
2008-10-06 01:35:35 +00:00
jmcneill
6c26172841 Fix issue where multi-transaction isoc endpoints were forced to single
transactions, from Jeremy Morse.
2008-10-05 21:31:39 +00:00
bouyer
90f9293b21 Add missing splx(). Funny that it didn't cause issues ... 2008-10-04 21:00:28 +00:00
bouyer
473d83f87f Make sure the adapter is ready to accept FISs before bringing the PHY up.
Wait for the BSY bit to clear in the status register.
Makes the cdrom drive probe properly on a ATI SB600 controller in AHCI
mode.
2008-10-03 13:02:08 +00:00
bouyer
2887906e27 Kill ATACH_TH_RUN and use cpu_intr_p() instead. 2008-10-02 21:05:17 +00:00
sborrill
85b692fb65 Add support for >2TB arrays and implement raw I/O mode which is a
requirement for this.

N.B. Still to do - move dump on ld to 64-bit disk addresses
2008-10-02 08:21:57 +00:00
pgoyette
0219f2ad21 Add new driver for dbCool(tm) family of Thermal Monitor and Fan Controller.
Supported chips: ADM1027, ADM1030, ADT7463, ADT7466, ADT7467, ADT7468,
ADT7473, ADT7475, and ADT7476.  Notably missing is the ADT7490, and fan
controller support on the ADT7466 is still on the to-do list.

Tested by myself and njoly@
Reviewed by garbled@
Commit approved by christos@, bouyer@, cube@, and matt@
2008-10-02 00:47:51 +00:00
bouyer
04f65cb049 Use a separate thread to probe/attach atabus's childrens. Fixes a deadlock
where the interrupt routine wants to wake up the atabus thread to perform a
reset, while the thread is blocked in wd's attach function.
2008-10-01 18:23:55 +00:00
christos
c11d4b42be regen 2008-10-01 17:16:15 +00:00
christos
98f48d5f26 ICH10 support from Brad du Plessis 2008-10-01 15:38:14 +00:00
hannken
597afdd860 Make fss(4) D_MPSAFE.
- Use the device lock to protect fss_open(), fss_close() and fss_unmount_hook().
- Make sure fss_bs_thread() does not call biodone() with locks held.

Reviewd by: Andrew Doran <ad@netbsd.org>
2008-10-01 10:45:11 +00:00
jmcneill
536d3f6c8b Remove esl(4) 2008-09-30 16:51:45 +00:00
pgoyette
d17ee48907 When scanning i2c bus for responding devices, skip over the multicast
i2c Alert Response Address.  Skipping this won't hurt (the address is
allegedly reserved), and it might avoid the lock-ups that have been
seen by others.
2008-09-29 22:55:08 +00:00
bouyer
2837506868 Regen: Add JMicron OUI, and JMC2[56]0 PHYs. 2008-09-28 18:30:47 +00:00
bouyer
d601ac3749 Add JMicron OUI, and JMC2[56]0 PHYs. 2008-09-28 18:30:11 +00:00
oster
f29979e70c Undo previous change to an #if 0. The code does belong to the
distributed sparing bits, but no-one has compile-tested the code.
Un-breaks the ALL build.
2008-09-28 16:17:17 +00:00
wiz
188468ada8 regen. 2008-09-28 15:41:50 +00:00
wiz
e5e4b9c58a Add Zippy Technology Corporation (from www.linux-usb.org/usb.ids). 2008-09-28 15:41:29 +00:00
martin
dab198261c Apply patch from Dave Huang in PR kern/39642: catch up on com(4)'s
device_t/softc split.
2008-09-28 15:39:40 +00:00
pgoyette
d3676b5978 Add support for DDR3.
OK garbled@
2008-09-28 12:59:54 +00:00
bouyer
10d92b0ee8 Regen for JMicron Ethernet Controllers. 2008-09-28 11:36:06 +00:00
bouyer
470fa26649 Add JMicron JMC250 Gigabit Etheret and JMC260 Fast Ethernet Controllers.
While here, fix other JMicron device IDs (product ID is 4 digits, not five).
2008-09-28 11:35:06 +00:00
oster
6658196076 Cleanup some of the spare table stuff. It is not needed in the general
case, and is only needed for parity declustering with distributed
sparing.
2008-09-27 21:58:04 +00:00
pgoyette
b73f29cbc7 Display memory latency/timing data via aprint_verbose()
spdmem0: tAA-tRCD-tRP-tRAS: 5-5-5-18

OK garbled@
2008-09-27 16:37:40 +00:00
pgoyette
f9eb81cfb1 Miscellaneous clean-ups:
1. Use proper CRc check for FB-DIMMs rather than simple checksum
  2. Provide access to entire SPD ROM contents via sysctl, rather than
     only the first 64 bytes
  3. Use macros to define i2c bus address checking
  4. General fix-up for RAMBUS memory (not that anyone I know has one)

OK garbled@
2008-09-27 06:58:08 +00:00
jmcneill
2941ba2cb6 De-USB_* pseye(4) 2008-09-27 02:47:56 +00:00
ad
3704b6874f PR kern/38872 vnconfig panics with rw lock error
Pass IO_NODELOCKED where needed.
2008-09-24 07:57:30 +00:00
ws
0f3b6c479f If you want to test option INET, make sure that it is in sight. 2008-09-24 07:19:18 +00:00
christos
29fd335624 PR/39583: Brad du Plessis: acrmsr(4) driver doesn't report number of volumes correctly
to bioctl(8)
PR/39584: Juan RP: arcmsr(4) driver disk state values are incorrect (for ARC-1220)
2008-09-23 22:22:41 +00:00
oster
c4025116b9 Nuke unneeded printf(). Spotted by pooka@. 2008-09-23 21:36:35 +00:00
hannken
95da771bbd Build modular fss driver.
Reviewed by: Quentin Garnier <cube@netbsd.org>
2008-09-23 07:56:59 +00:00
jmcneill
c175112638 Remember previous display brightness across suspend/resume; now we don't
need X to restore the display for us.
2008-09-21 21:15:28 +00:00
jmcneill
c3641af740 Register with pmf 2008-09-21 19:26:36 +00:00
jmcneill
402497db0a Guard against short bHeaderLength when processing video payload 2008-09-21 19:22:21 +00:00
freza
8f5a2d0c69 Make it compile with DPRINTFs disabled. 2008-09-21 18:20:03 +00:00
jmcneill
614d391b35 Discard frames with header lengths larger than we expect them to be.
Use USBD_NO_COPY and no timeout with the bulk transfer. uvideo(4)
works on EeePC now.
2008-09-21 17:58:05 +00:00
jmcneill
30ecaca828 UVC bulk endpoint support, from myself, mjf, and a bottle of vodka. Mostly
works, doesn't handle stream errors properly yet.
2008-09-21 14:13:24 +00:00
freza
e7607938e4 Use M_80211_NODE for 'zyd_node' allocation instead of M_DEVBUF. 2008-09-21 09:38:27 +00:00
jmcneill
d911baed67 Fix reversed test in uvideo_init_control, from Patrick Mahoney 2008-09-20 21:05:58 +00:00
freza
d051eaa878 iwn_node_alloc(): Allocate 'iwn_node' in M_80211_NODE (which is what
ieee80211_node:node_free() expects), not M_DEVBUF. Fixes DIAGNOSTIC
    crashes due to suspected double-free.
2008-09-20 18:28:28 +00:00
jmcneill
47d8270f89 Add UYVY support. 2008-09-20 18:17:56 +00:00
jmcneill
dd257cd7a7 Add RGB555, RGB565, UYVY support 2008-09-20 18:13:40 +00:00
jmcneill
205dac9d2c Use probe/GET_MAX to determine wCompQuality value during negotiation 2008-09-20 15:55:38 +00:00
jmcneill
d9c8a20dcc Print uDWord types with %u instead of %d 2008-09-20 14:01:27 +00:00
christos
afaf958ea2 PR/46593: Patrick Welche: Compute both the original and the ~VIA_T_BOOTABLE
hacked checksums and compare against both.
2008-09-19 16:49:27 +00:00
joerg
b8df2b2d5f Complain about devices with misaligned PCI capability pointers instead
of panicing. Christoph Schug reported that such a device is made by
Nvidia.
2008-09-19 14:37:13 +00:00
jmcneill
e8af03099d uvideo_set_format: perform a probe/SET, probe/GET before commit/SET instead
of relying on the information in probe/GET to be already valid.
2008-09-19 12:14:53 +00:00
jmcneill
4a1f40c8ab Remove qcm driver definition that slipped in accidentally on the previous
commit, pointed out by cegger
2008-09-19 11:29:35 +00:00
jmcneill
13e32ea2ea Revert previous. 2008-09-19 11:15:50 +00:00
jmcneill
db5b771d07 Add pixel format selection support. 2008-09-19 00:05:02 +00:00
jmcneill
b11aea36cc Add support for video mode selection, and protect isoc xfer shutdown
with splusb
2008-09-18 23:20:52 +00:00
jmcneill
ee916aba93 Fix kmod support. 2008-09-18 21:52:41 +00:00
jmcneill
f93a860daa Properly calculate nframes for isoc xfers, and skip uvc payloads with
a length of 0, from Matthias Drochner.
2008-09-18 17:47:09 +00:00
jmcneill
7174577ba3 defflag UVIDEO_DEBUG 2008-09-18 16:40:37 +00:00
jmcneill
f1fc481694 For now, select default format in uvideo_open. Makes ekiga happy. 2008-09-18 13:34:56 +00:00
cegger
b32980d604 regen. 2008-09-18 12:04:25 +00:00
cegger
036fca3320 correct C51 host bridge numbers. Spotted by njoly@ 2008-09-18 12:03:45 +00:00
hannken
2b3efeeac5 Persistent snapshots do not need to allocate the variable softc elements. 2008-09-18 10:52:14 +00:00
cegger
7a5a7454d4 regen. 2008-09-18 09:49:29 +00:00
cegger
47fc4656dc add NVIDIA C51 products 2008-09-18 09:48:24 +00:00
dogcow
2a77a1f02a add missing enum; fixes compile of video.c. 2008-09-18 05:35:05 +00:00
jmcneill
bd78ec5c6b * Use determined default format based on descriptors rather than relying on
GET_DEF, as this is probably not what is wanted.
* Don't select an alternate interface with max packet size > 1024
2008-09-18 04:37:06 +00:00
jmcneill
f2b05f5e15 Uncomment code accidentally commented out in the last commit. 2008-09-18 02:57:07 +00:00
jmcneill
88913084de Allow for multiple simultaneous isoc xfers to be in progress at a time,
to reduce the chance of data loss.
2008-09-18 02:49:00 +00:00
jmcneill
b04b4cc4f6 Use get_format instead of set_format in videoopen 2008-09-18 02:47:57 +00:00
pgoyette
ab6abfafd3 Add verification of proper chip before blindly matching for consistency
with other drivers (notably adt7463).

NOTE: The verify routine in _both_ drivers might better be placed in-line
in the _match() routine.  But these drivers will soon be superseded by the
dbcool driver any way.

OK gmcgarry@
2008-09-17 15:39:05 +00:00
hannken
8de1a273e1 Replace the fss unmount hook with a vfs_hook.
fssvar.h:       struct device * -> device_t.
fss.c:          establish unmount hook on first attach, remove on last detach.
vfs_syscalls.c: remove the call of fss_umount_hook().
vfs_trans.c:    destroy cow handlers on unmount as fstrans_unmount() will be
                called before vfs_hooks.
2008-09-17 14:49:25 +00:00
jmcneill
548abe3d13 Note where the magic register information came from in this driver. No
functional change.
2008-09-17 03:57:19 +00:00
martin
6b8ff81d70 Remove hardcoded vendor/product ID based lookup for HX type chips and
decide based on the device descriptor instead. Simplifies things a
lot and fixes PR 39457.
2008-09-16 20:00:17 +00:00
tron
6264f47cc6 Support multiple volumes connected to Intel MatrixRAID controllers.
Code contributed by Juan RP in PR kern/39552.
2008-09-16 11:45:30 +00:00
pgoyette
d17c220979 Add another touchpad device - this one found in my Acer2413WLCi laptop.
Tested by me.
OK garbled@
2008-09-16 11:24:55 +00:00
jdc
102e2c2e6b Read the correct error status register on SBus cards.
Don't set infinite burst on SBus cards.
Changes based on information in the `Sbus GEM Specification':
  http://mediacast.sun.com/users/Barton808/media/gem_sbus-1.pdf

SBus-based GEM cards (i.e. Sun X1140A) now work!
Tested with a X1140A card in a U1 and in a U2.
Thanks for martin@ for testing.
2008-09-15 19:50:28 +00:00
jdc
4bd69c5b5b Minor corrections to the SBus definitions, from the `Sbus GEM Specification':
http://mediacast.sun.com/users/Barton808/media/gem_sbus-1.pdf
2008-09-15 19:43:24 +00:00
tron
75ba997609 Only report volume names if they are non empty.
Patch provided by Juan RP in PR kern/39514.
2008-09-15 11:53:52 +00:00
tron
25f901a460 Add support for status reports via bio(4) to ataraid(4).
The code was contributed by Juan RP in PR kern/39514.
2008-09-15 11:44:50 +00:00
jakllsch
1630e9c193 A few cleanups for siisata(4)
No functional changes intended (except maybe un-reseting the chip a bit later
in attach).

 - pass fewer arguments to local functions where arguments can be derived from
   an existing argument
 - some coding style fixes
 - more abstraction for PRB activation and deactivation
 - bus_dma(9) properification in error cases
 - undefine SIISATA_DEBUG, and cleanup variables used only for DEBUG_PRINT()s
2008-09-14 21:53:49 +00:00
mhitch
f60765db47 Use the physical address from the bus_dmamap_load() map, not the one from
the bus_dmamem_alloc().  Fixes iop(4) on alpha, and possibly sparc64 as
described in the thread
http://mail-index.netbsd.org/port-sparc64/2008/06/04/msg000413.html.
2008-09-14 18:12:16 +00:00
hannken
fce2c1d412 Create fss(4) devices on first open and destroy on last close of an
unconfigured device.  That removes the compile-time constant number
of useable devices.
While here, add disk_busy()/disk_unbusy() instrumentation.

Reviewed by: Quentin Garnier <cube@netbsd.org>
2008-09-14 16:10:19 +00:00
jmcneill
ef1dc4a8df Add VIDEO_FORMAT_YUV420 support 2008-09-14 16:03:27 +00:00
jmcneill
e3661f12b1 Allow VIDIOC_ENUM_FORMAT to return more than one result. 2008-09-14 14:31:33 +00:00
hannken
d5a365311b Remove FSS_STATISTICS. It was never documented and has no real value.
While here, modify fss_error() to no longer use variable arguments.

No functional changes.
2008-09-14 10:12:14 +00:00
freza
f4fa233a79 * iwn_rx_intr(): free rbuf is available if 'nb_free_entries > 0'.
This used to have '>=' resulting in kernel crash accessing NULL
    rbuf under non-trivial Rx load.
2008-09-14 10:09:39 +00:00
jmcneill
e1dadf87f1 Revert previous double-free hack, needs revisiting. 2008-09-14 03:33:44 +00:00
jmcneill
73f0afe78c Add RGB24 2008-09-14 00:26:35 +00:00
jmcneill
5f7d249f98 Add RGB24 support, and prevent a double-free on videoclose 2008-09-13 23:50:54 +00:00
mjf
0074b883b4 Fix pseye_start_transfer() to return the return value of kthread_create()
instead of always returning 0.
2008-09-13 18:51:10 +00:00
njoly
555283069e Regen for Nvidia GeForce 6150 devices addition. 2008-09-13 15:40:51 +00:00
njoly
ae35124d9b Add Nvidia GeForce 6150 devices. 2008-09-13 15:39:01 +00:00
christos
9fd9aaab22 PR/39525: Joachim Schueth, Frederik Sausmikat:
cgd inadvertently encrypts blkno eight times to generate IV
2008-09-12 16:51:55 +00:00
christos
66f8c2438f PR/39525: Joachim Schueth, Frederik Sausmikat:
cgd inadvertently encrypts blkno eight times to generate IV
Add "encblkno1" IV type to encrypt only once, rename old "encblkno" to
"encblkno8" for clarity, and make "encblkno" an alias for "encblkno8"
for backward compatibility.
2008-09-12 16:51:54 +00:00
hannken
dee5129905 - Replace simple_lock/ltsleep/wakeup with mutex/cv.
- Replace malloc/free with kmem_alloc/kmem_free.
- Use bdev_ioctl() instead of bdevsw_lookup()/(*d_ioctl)().
- Be more fair to readers by cleaning the cache one slot at a time.
2008-09-12 10:56:14 +00:00
pgoyette
6d5a4d28bb Provide an option I2C_SCAN to enable sanning i2c bus for responses. This
is disabled by default, preserving current behavior.

OK garbled@
2008-09-11 20:48:50 +00:00
tron
2b3ca19215 Add support for Intel MatrixRAID to ataraid(4). It is currently limited
to one volume.

The driver was provided by Juan RP in PR kern/39511.
2008-09-11 11:08:50 +00:00
hannken
31cd18f961 fss_copy_on_write(): return error if reading the snapshotted device failed.
fss_read_cluster():  use nestiobuf for reading.
fss_bs_thread():     dont read the snapshotted device if a request is
                     completely covered by backing store.
2008-09-11 09:37:53 +00:00
jmcneill
9397047d32 QuickCam Messenger: Set UQ_BAD_ADC quirk so uaudio will attach. The device
reports bcdADC == 0x200, but the microphone otherwise works fine.
2008-09-10 20:34:40 +00:00
jmcneill
f196dae5e9 regen 2008-09-10 20:07:46 +00:00
jmcneill
0470da95e3 Logitech QuickCam Messenger 2008-09-10 20:04:56 +00:00
christos
9d61fcf10f replace \xa0 with space from Andy Shevchenko 2008-09-10 19:20:06 +00:00
tron
79a4d38697 Don't attach RAID volumes with incomplete config blocks which would lead
to panic later. Patch provided by Juan PR in private e-mail.
2008-09-10 16:59:32 +00:00
cegger
41812eebff update TODO list: we have isoc support 2008-09-10 06:08:27 +00:00
jmcneill
b1cb1c6dcb PR# 38683 - T61 cannot suspend with recent kernels
Don't restore spl until after AcpiLeaveSleepState.
2008-09-10 03:56:12 +00:00
hubertf
07d9131246 Sign over copyright of Jeremy Morse's code to TNF, OK'd by Jeremy Morse
(still mention Jeremy as contributor)
2008-09-09 21:51:32 +00:00
mhitch
70a12d51ab Add support for SerDes controllers; from the OpenBSD driver. Tested on a
Dell Blade server by me, and an HP Blade server by Havard.
2008-09-09 20:12:18 +00:00
jmcneill
426e852b45 register with pmf 2008-09-09 17:40:40 +00:00
mhitch
2478b16894 In bnx_release_resources(), don't de-reference a NULL pointer if the
rx_mbuf_map has not been allocated yet.  From Havard Eidnes.
2008-09-09 17:34:10 +00:00
tron
362b2f2b14 Complete device_t/softc split for the ld(4) attachments. This should
prevent crashes while attaching a drive.

Patch supplied by Juan RP in PR kern/39468.
2008-09-09 12:45:39 +00:00
cegger
127df52413 make an i386/ALL kernel build 2008-09-09 05:54:23 +00:00
cegger
9153a46c8f make this build w/o UVIDEO_DEBUG 2008-09-09 05:44:08 +00:00
jmcneill
7360cd3bde VIDIOC_QUERYCAP: device_xname on device_t, not softc 2008-09-09 04:28:54 +00:00
jmcneill
f97cf58f74 More pixelformat mapping typo fixes 2008-09-09 04:23:53 +00:00
jmcneill
1bb2686bdf Map VIDEO_FORMAT_MJPEG to V4L2_PIX_FMT_MJPEG, not V4L2_PIX_FMT_JPEG 2008-09-09 04:23:02 +00:00
cube
65ce35522e Redde Caesari quae sunt Caesaris. Or rather, in this particular case,
those that are Lennart's.

Eventually there should only be one set of HID drivers.
2008-09-09 03:54:56 +00:00
jmcneill
ff15aabd32 Fix "select timeout" and low framerate issues with mplayer, from drochner@ 2008-09-09 01:36:48 +00:00
jmcneill
c08044b7db USB Video Class capture device driver, part of Patrick Mahoney's Google
Summer of Code 2008 project.
2008-09-09 01:13:42 +00:00
jmcneill
78974094d6 Clarify the message printed by the kernel when a low or full speed
device with isochronous endpoints is attached to a hi-speed hub. Also
silence a printf in ehci_device_isoc_close
2008-09-09 00:46:45 +00:00
jmcneill
51d385aeea No need for videoio.h in hw driver 2008-09-09 00:19:10 +00:00
gmcgarry
0de5da9678 Replace most gcc-specific __attribute__ uses with BSD-style sys/cdef.h
preprocessor macros.
2008-09-08 23:36:53 +00:00
pgoyette
ca20a59d5d Fix typo - no functional changes.
OK macallan@
2008-09-08 23:07:51 +00:00
jmcneill
6ea027b866 Run pseye_transfer_thread at a higher priority to ensure that we don't
receive partial frames in our bulk xfer.
2008-09-08 22:28:53 +00:00
jmcneill
dd848685c1 Implement try_format 2008-09-08 22:13:26 +00:00
christos
f119abb6e1 more device_private, pointed by cube. 2008-09-08 21:54:10 +00:00
christos
a1d4f75c7d avoid using casts by referencing the proper struct members. 2008-09-08 21:44:22 +00:00
christos
f64bb5868f cf_attach_decl_new 2008-09-08 21:20:03 +00:00
njoly
dcebe2386c Add missing newline in debug message. 2008-09-08 20:49:41 +00:00
njoly
5e265d5272 Improve message for SMI interrupts. 2008-09-08 20:47:09 +00:00
njoly
fa492bbaa9 Fix compilation with ICHIIC_DEBUG. 2008-09-08 20:37:38 +00:00
pgoyette
63a1d80294 Provide correct URL for current data sheet. This device is now owned
by ON Semi.
2008-09-08 16:05:44 +00:00
cegger
80399094f9 regen. 2008-09-08 08:03:44 +00:00
cegger
68afbb4114 Serverworks: correct product id for LPC, add XIOAPIC and Watchdog Timer 2008-09-08 08:02:48 +00:00
cegger
77a6ab9aa7 regen. 2008-09-08 07:07:53 +00:00
cegger
4decb0fd6d correct product id for serverworks usb controllers 2008-09-08 07:06:48 +00:00
jmcneill
6779aaaeb8 Limit VIDEO_MAX_BUFS to 32 instead of 255 2008-09-08 00:39:27 +00:00
jmcneill
ba13cfccc0 Missing aprint newline in video_attach 2008-09-07 20:05:13 +00:00
pgoyette
9b30bc57d1 Note that previous URL for ADT7463 datasheet is no longer operative, and
provide link to an earlier, but still active, revision.
2008-09-07 19:07:21 +00:00
jmcneill
f3728d27ce Actually, EINVAL is correct for an unimplemented ioctl. ENOTTY is only
needed for the VIDIOC_*_FMT ioctls.
2008-09-07 19:06:14 +00:00
jmcneill
d490ea275a Return ENOTTY instead of EINVAL if a driver doesn't implement one of the
set, try, get, or enum format ioctls.
2008-09-07 17:13:21 +00:00
jmcneill
94e5d88f48 Implement enum_format callback. 2008-09-07 17:12:21 +00:00
pgoyette
494623b269 Only report new sensor state values if the new value is valid for the
particular event being monitored.  This avoids duplicate reporting for
sensors that monitor both a normal/critical state and value-within-limits
state as reported by Simon Burge on current-users.

While we're here, clean-up some stair-stepping if's.

OK garbled@
2008-09-07 12:13:00 +00:00
rmind
591b1d0390 Regen. 2008-09-06 22:44:42 +00:00
rmind
05fb3eb929 PR/39119: Jan Thorsson: Support for VIA CX700M2 IDE controller. 2008-09-06 22:42:59 +00:00
rmind
73aa8e682d PR/38012: David Dudley: Support for B&B Electronics MIPort serial cards. 2008-09-06 22:36:40 +00:00
rmind
a393e9c9d7 PR/39442: Jeff Thieleke: Support for ATI SB700/SB800 controllers. 2008-09-06 22:18:56 +00:00
rmind
16dee06ce9 Regen. 2008-09-06 22:08:38 +00:00
rmind
3d4ea98e16 PR/38382: Jean-Yves Moulin: Support for Sierra Wireless Aircard 850. 2008-09-06 22:07:11 +00:00
rmind
913f159e82 Regen. 2008-09-06 21:53:32 +00:00
rmind
aa93fc3fa8 PR/37948: Yojiro UO: Support for Sony GPS GPS-CS1 devices. Check the support
of UR_BBB_GET_MAX_LUN, and disable the logic, if needed.
2008-09-06 21:49:00 +00:00
rmind
3f36b1dd77 PR/38202: Jeff McMahill: Support for Sealevel SeaPORT+4 USB to Serial adaptor. 2008-09-06 21:42:05 +00:00
rmind
0474b30708 PR/39303: Izaac: Support for Novatel Wireless Ovation U727. 2008-09-06 21:38:44 +00:00
rmind
5c8acba58c PR/39147: Jasper Wallace: Support Metageek Wispy 2.4x as ugen device. 2008-09-06 21:34:49 +00:00
rmind
a4a0c53b57 Unbreak build when VIDEO_DEBUG is not defined. 2008-09-06 21:21:49 +00:00
jmcneill
6902ca74cd Add driver for the Sony PLAYSTATION(R) Eye USB webcam. 2008-09-06 19:37:21 +00:00