Commit Graph

174 Commits

Author SHA1 Message Date
ad 66fefd117b It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.
2007-07-29 12:15:35 +00:00
ad b5a9ff06f1 Replace some uses of lockmgr(). 2007-07-21 19:51:47 +00:00
christos 9613494373 whitespace 2007-03-10 00:52:46 +00:00
he bf9a718b25 Cast to char* before doing pointer arithmetic. 2007-03-08 23:56:45 +00:00
he 856d1c9da0 Cast to char* before doing pointer arithmetic. 2007-03-08 23:25:44 +00:00
christos 53524e44ef Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
elad bdc51baebb Adapt MD code to KAUTH_DEVICE_TTY_OPEN, batch #2 from Matt Fleming, thanks!
Also, add forgotten splx() calls in some places.
2006-10-01 19:28:43 +00:00
dogcow f2d329dca0 remove more vestiges of CCITT, LLC, HDLC, NS, and NSIP. 2006-09-07 02:40:31 +00:00
ad 3029ac48c7 - Use the LWP cached credentials where sane.
- Minor cosmetic changes.
2006-07-21 16:48:45 +00:00
yamt 66d08528ca - include kauth.h for kauth_authorize_generic.
- wrap a long line.
2006-05-15 20:40:55 +00:00
elad 2867b68bc3 integrate kauth. 2006-05-14 21:42:26 +00:00
thorpej ceb94256d6 Use device_private(). 2006-03-29 18:17:36 +00:00
thorpej 2be6494fc9 Use device_cfdata(). 2006-03-29 04:16:44 +00:00
thorpej 39cd836ee1 Use device_unit(). 2006-03-28 17:38:24 +00:00
thorpej 6e53f1366a Use device_parent(). 2006-03-25 23:14:58 +00:00
thorpej 4d51b7cce7 Use device_parent(). 2006-03-25 04:08:45 +00:00
thorpej d1f18238ca Use device_is_a(). 2006-02-27 02:59:24 +00:00
christos 4040537d5e make this compile again (from Johnny Billquist) 2005-12-11 23:17:10 +00:00
christos 95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
yamt aec75b1cc6 - change the way to specify a bufq strategy. (by string rather than by number)
- rather than embedding bufq_state in driver softc,
  have a pointer to the former.
- move bufq related functions from kern/subr_disk.c to kern/subr_bufq.c.
- rename method to strategy for consistency.
- move some definitions which don't need to be exposed to the rest of kernel
  from sys/bufq.h to sys/bufq_impl.h.
  (is it better to move it to kern/ or somewhere?)
- fix some obvious breakage in dev/qbus/ts.c.  (not tested)
2005-10-15 17:29:10 +00:00
kleink aece7a90fd Change the driver open function's conditional for overriding exclusive tty
use from checking the proc's uid to suser(9), and account for the use of
privileges.  Noted by David Holland in PR kern/31126.
2005-09-06 21:40:37 +00:00
kleink bdfc943920 Change the driver open function's conditional for overriding exclusive tty
use from checking the proc's uid to suser(9), and account for the use of
privileges.  Noted by David Holland in PR kern/31126.

Also change this to use the proc argument instead of curproc.
2005-09-06 20:46:38 +00:00
drochner 46ed4b50c4 s/locdesc_t/int/g 2005-08-26 12:42:11 +00:00
ragge a4a700a791 Fixes due to cast-qual addition. 2005-06-27 11:05:24 +00:00
simonb 17948e75bb White space nits. 2005-02-26 12:45:06 +00:00
perry 18db93c7f6 de-__P 2005-02-04 02:10:35 +00:00
matt 027c11539b Add IFNET_FOREACH and IFADDR_FOREACH macros and start using them. 2005-01-24 21:25:09 +00:00
chs 267af995b7 use the generated macros in locators.h rather than hard-coded numbers
to index the cf_loc[] array.  reviewed by allen briggs.
2004-12-14 02:32:02 +00:00
he 6ef865c900 Include the <sys/bufq.h> header to allow these to compile again. 2004-10-31 12:52:55 +00:00
thorpej 559857f039 - qtinit(): Don't skip initialization if we're already marked RUNNING.
ether_ioctl() will call (*if_init)() when flags change.  Instead, do
  what other drivers do and stop the interface in this case before
  re-initializing.
- qtioctl(): Now that qtinit() does the right thing, remove the check
  for IFF_PROMISC change.

  When adding/deleting multicast addresses, only whack the address
  filter if the interface is marked RUNNING.

  Fixes kern/27678.
2004-10-30 23:45:10 +00:00
thorpej e9818f5b5e When adding/deleting multicast addresses, only whack the address
filter if the interface is marked RUNNING.

Fixes kern/27678.
2004-10-30 18:08:34 +00:00
yamt 05f25dcc2a move buffer queue related stuffs from buf.h to their own header, bufq.h. 2004-10-28 07:07:35 +00:00
wiz 9876532d80 Fix some typos in comments and panic()s. 2004-10-06 12:12:42 +00:00
thorpej ecb2cb3112 Add support for wedges to the RL01/RL02 disk driver.
XXX Can't do autodiscovery here, since we can't do I/O in rlattach().
2004-09-25 16:27:38 +00:00
drochner 27a661f0fb use interface attribute / locator passing versions
of config_search()
2004-09-08 20:13:52 +00:00
wiz 6e05316faa Remove UCB ad clause in Hugh Graham's license.
Ok'd by Hugh Graham and board.
2004-05-12 00:45:04 +00:00
matt 22120ad628 Constify the speedtab arrays 2004-04-25 06:23:40 +00:00
bjh21 0fada96f70 Move my copyright notice to the 3-clause UCB licence. 2004-03-22 18:36:14 +00:00
wiz f05e6f1a3a occured -> occurred. From Peter Postma. 2004-02-24 15:12:51 +00:00
ad 3234027240 Add write barriers (a no-op on vax). 2003-12-13 23:02:33 +00:00
ragge a808d6e157 Add stop routine. Add support for turning the device into promiscous mode.
Force interrupt in probe so that the interrupt vector can be detected.
2003-08-31 11:13:43 +00:00
ragge a936bbd778 bus-ify. Make bpf work, but no promiscuous mode yet. 2003-08-29 14:39:28 +00:00
ragge b61c0451e0 The qt driver must be probed first, so that the qe driver is skipped
if it is a qt card.
2003-08-29 13:50:45 +00:00
ragge cd72141286 Make the qt driver work under NetBSD. Still to do:
- bus-ify.
- bpf support.
- multicast support.
2003-08-29 13:49:39 +00:00
ragge b6d1d6091d Keep track of which addresses that are used by devices, so that probing
do not fiddle with registers on already found devices.
2003-08-28 14:59:06 +00:00
ragge 3627139aef Add qt. 2003-08-28 10:07:34 +00:00
ragge bc6fe7fbed Driver for the DELQA-PLUS card in Turbo mode, from 2.11BSD, written by
Steven M. Schultz.
2003-08-28 10:03:32 +00:00
ragge c049e276e3 Improved driver with much better error handling, from Jochen Kunz
(the original author of the driver).
2003-08-13 08:08:48 +00:00
agc aad01611e7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
lukem 365cbd9428 add missing __KERNEL_RCSID() 2003-07-14 15:47:00 +00:00