martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00
tsutsui
78a1d236b6
Split device_t/softc for MI ncr53c9x and some related devices,
...
with various cleanup.
2008-04-13 04:55:52 +00:00
tsutsui
5147571380
Split devict_t/softc for ncr5380sbc SCSI, and misc cosmetic changes.
2008-04-04 16:00:57 +00:00
tsutsui
d9941582bf
Split device_t/softc for le(4) and variants and misc cosmetic changes.
2008-04-04 12:25:06 +00:00
tsutsui
02cb47cab2
Split softc and device_t for zsc(4) and its children.
...
XXX we should restructure MI APIs and make it really machine independent.
2008-03-29 19:15:34 +00:00
elad
08a754e331
It's KAUTH_REQ_DEVICE_RAWIO_PASSTHRU_*.
...
Noted by dogcow@, thanks!
2008-02-06 12:13:47 +00:00
elad
6f361f7379
- There is no XYCMD_WRP -- forgot to remove it along with the XYCMD_RDP :)
...
- Add missing '}'
Noted by dogcow@, thanks!
2008-02-06 12:08:34 +00:00
elad
38012644ad
Properly classify kauth PASSTHRU requests.
...
Done with much help from chuck@, thanks!
2008-02-04 21:08:13 +00:00
joerg
7a170eb0b2
Add missing mutex for cv_timedwait.
2008-01-04 19:45:54 +00:00
ad
4a780c9ae2
Merge vmlocking2 to head.
2008-01-02 11:48:20 +00:00
tsutsui
2f66d76b2f
Adapt sun68k ports to recent interrupt handling changes.
...
XXX: sun2 (m68010) doesn't have CAS instructions.
2007-12-04 15:12:07 +00:00
ad
dc26833bb6
- Factor out too many copies of the same bit of tty code.
...
- Fix another tty signalling/wakeup problem.
2007-11-19 18:51:36 +00:00
ad
f2c57d8566
Call zs_lock_init() to set up the chanstate's lock.
2007-11-09 00:05:04 +00:00
rjs
04a1aa35a4
Move prototype for kd_later() before first use.
2007-10-28 13:29:21 +00:00
joerg
d238692c3e
Initialise the callbacks for tty.t_rstrt_ch in ttymalloc
...
as all drivers but Sun/SPARC's kd.c use the same arguments.
Separate callout_reset into callout_schedule and the initial
callout_setfunc using that.
2007-10-18 18:54:56 +00:00
garbled
d974db0ada
Merge the ppcoea-renovation branch to HEAD.
...
This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.
TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.
NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
2007-10-17 19:52:51 +00:00
ad
2af68666da
Merge disk init changes from the vmlocking branch. These seperate init /
...
destroy of 'struct disk' from attach / detach.
2007-10-08 16:41:05 +00:00
he
a37504be16
Remove a now-unused local variable.
2007-09-06 08:52:36 +00:00
dyoung
dcd8923429
Change a bazillion occurrences of code resembling this,
...
error = (cmd == SIOCADDMULTI) ?
ether_addmulti(ifr, &sc->sc_ec) :
ether_delmulti(ifr, &sc->sc_ec);
if (error == ENETRESET) {
to this,
if ((error = ether_ioctl(ifp, cmd, data)) == ENETRESET) {
which does the same thing.
(A bazillion is a very large number. This seems to make the i386
ALL kernel smaller by 3kB to 4kB.)
Use ifreq_getaddr() twice in es(4).
Whitespace nits.
2007-09-01 07:32:22 +00:00
dyoung
6f7649313f
Constify.
2007-08-26 22:28:52 +00:00
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
88ab7da936
Merge some of the less invasive changes from the vmlocking branch:
...
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
2007-07-09 20:51:58 +00:00
hauke
3d7f38ec94
Fix a warning from gcc 4 about stripping the volatile qualifier by a cast
...
by doing the proper __UNVOLATILE() dance.
2007-06-23 15:32:56 +00:00
tsutsui
736b47b76e
Fix printf formats in #ifdef DEBUG.
2007-03-12 12:03:18 +00:00
tsutsui
27c7c429f6
Call zsc_intr_soft() directly on softintr() since spltty()
...
will be set by each handler (zstty_softint() or kbd_zs_softint()).
2007-03-11 06:20:39 +00:00
tsutsui
a6dd0468f5
Use proper casts.
2007-03-04 14:00:54 +00:00
tsutsui
006ca42cab
Minor space nits.
2007-03-04 14:00:24 +00:00
tsutsui
bc8b643653
Add (char *) casts on pointer arith.
2007-03-04 13:59:47 +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
ad
36bb413e0d
More spllowersoftclock() fallout.
2007-02-16 13:55:42 +00:00
reinoud
43061c75ae
Rename the B_XXX flag to B_DEVPRIVATE flag since it was never used for
...
debugging and its main use is in device drivers. Its used there to signal
that the flagged buffer has a special meaning or should be handled
differently.
OK'd by Bill Sudenmund on tech-kern.
2007-02-15 18:33:26 +00:00
tsutsui
6e3b5f512c
Remove unused dh_addr member from struct si_dma_handle.
2007-02-04 01:38:34 +00:00
tsutsui
e32f083d80
Remove leftover debug stuff which could break si_obio DMA.
2007-02-04 01:37:09 +00:00
tsutsui
f7397aaa8c
Make si at obio and si at vme on sun3 use bus_dma(9) for data xfer.
...
XXX1: Only si at vme on TME is tested.
XXX2: No info about DMA on si at sebuf. (bounce buffer required?)
2007-02-03 18:02:57 +00:00
tsutsui
b19c5b0bc7
Make esp and its dma on 3/80 use bus_dma(9).
...
XXX: Maybe we should consider to use MI sys/dev/ic/lsi64854.c.
2007-02-03 05:17:30 +00:00
tsutsui
920dd50438
Use bus_space(9).
2007-01-23 15:58:22 +00:00
elad
1e70d64818
Consistent usage of KAUTH_GENERIC_ISSUSER.
2007-01-04 16:55:29 +00:00
tsutsui
85174f3709
Make this compile with FD_DEBUG.
2006-10-14 08:11:16 +00:00
tsutsui
f7d5502c71
Use IPL_BIO rather than (temporarily defined) IPL_SOFT_LEVEL2.
...
Both of them share cpu ipl 2, and maybe it's intentional design
since fd.c uses ipl 6 for hardware interrupt.
2006-10-06 12:54:14 +00:00
tsutsui
0b2c7040b5
Make sun3 use common sun68k/sun68k/isr.c, sun68k/include/cpu.h and
...
sun68k/include/intr.h.
This also means now sun3 has GENERIC_SOFT_INTERRUPTS support,
so also adapt fd.c and zs.c to MI softintr(9) APIs.
(I'll also update related sources in yamt-splraiseipl branch later)
2006-10-05 14:46:11 +00:00
tsutsui
c207dcd880
- change find_prom_map() to take paddr_t and return vaddr_t rather than
...
bus_space_handle_t since bus space handle without bus space tag looks weird
- replace old sun3 obio_find_mapping() with new common find_prom_map()
- add bus_space_vaddr(), from hp300
2006-10-03 13:02:32 +00:00
elad
e8373398dc
Adapt MD code to KAUTH_DEVICE_TTY_OPEN. Patch from Matt Fleming, thanks!
2006-10-01 18:56:21 +00:00
matt
aa6c194477
Remove an unneeded volatile.
2006-09-01 03:22:58 +00:00
matt
fc28199c6e
Fix a -Wshadow error.
2006-09-01 03:22:26 +00:00
ad
f474dceb13
Use the LWP cached credentials where sane.
2006-07-23 22:06:03 +00:00
elad
8ccb6c9341
integrate kauth.
2006-05-14 21:55:09 +00:00
he
c0f90d3a98
Follow up i/o statistics collection conversion, patterned after the sparc fd.c.
2006-04-19 06:16:00 +00:00
tsutsui
06a7c0b05e
Use device_unit(parent), not device_parent(parent).
2006-03-29 14:34:29 +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