martin
2d45390a1c
Fix typo
2014-03-18 08:08:55 +00:00
dholland
a68f9396b6
Change (mostly mechanically) every cdevsw/bdevsw I can find to use
...
designated initializers.
I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.
2014-03-16 05:20:22 +00:00
martin
06481cf218
Remove unused variables
2014-03-14 08:55:40 +00:00
martin
7046111bd6
Remove an unused variable
2014-03-14 08:50:08 +00:00
riz
6ec333eb37
Catch up to recent changes in config_pending_{incr,decr}().
2013-10-13 06:55:34 +00:00
chs
cbab9cadce
split device_t/softc for all remaining drivers.
...
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
2012-10-27 17:17:22 +00:00
abs
d6cb28dd2a
- Adjust the TOC parsing to reject an TOC with invalid (zero) track ids.
...
Avoids dereferencing off the start of the TOC track array.
- Add #ifdef GDROMDEBUGTOC for dumping out the gdrom TOC values
2012-07-27 07:42:26 +00:00
para
89c9828deb
converting extent(9) from malloc(9) to kmem(9)
...
preceding kmem-vmem-pool-uvm patch
releng@ acknowledged
2012-01-27 18:52:47 +00:00
macallan
ec24591f27
adjust for wsfont_find() change
2012-01-11 21:17:33 +00:00
jmcneill
8a962f23f2
Merge jmcneill-audiomp3 branch, which is derived from ad-audiomp2. From
...
the original ad-audiomp branch notes:
Add MP locking to the audio drivers.
Making the audio drivers MP safe is necessary before efforts
can be made to make the VM system MP safe.
The are two locks per device instance, an ISR lock and
a character device lock. The ISR lock replaces calls to
splaudio()/splx(), and will be held across calls to device
methods which were called at splaudio() before (e.g.
trigger_output). The character device lock is held across
calls to nearly all of the methods, excluding some only
used for initialization, e.g. get_locks.
Welcome to 5.99.57.
2011-11-23 23:07:28 +00:00
dyoung
86b5be6e94
Change <machine/bus.h> to <sys/bus.h> throughout.
...
Split bus.h -> bus_{defs,funcs}.h.
Mark dreamcast/bus.h obsolete.
2011-07-19 15:52:29 +00:00
tsutsui
8db5928a80
Move several static wsdisplay variables into proper device specific structures
...
to resolve XXX comments. Tested on GXemul.
2011-05-21 12:00:18 +00:00
dyoung
a6b2b8396b
PCI_FLAGS_IO_ENABLED and PCI_FLAGS_MEM_ENABLED changed their functional
...
role in NetBSD (drivers are no longer supposed to write these to
pa_flags) without changing name. Correct that.
Rename PCI_FLAGS_IO_ENABLED to PCI_FLAGS_IO_OKAY and
PCI_FLAGS_MEM_ENABLED to PCI_FLAGS_MEM_OKAY, thus making their names
consistent with the other PCI flags and poisoning 3rd-party driver
sources that use the flags in the old bad way.
This patch produces no binary changes in this set of PCI kernels when
they are compiled w/o 'options DIAGNOSTIC' and w/ -V MKREPRO=yes:
algor P4032 P5064 P6032
alpha GENERIC
amd64 GENERIC XEN3_DOM0
arc GENERIC
atari HADES MILAN-PCIIDE
bebox GENERIC
cats GENERIC
cobalt GENERIC
evbarm-el ADI_BRH ARMADILLO9 CP3100 GEMINI GEMINI_MASTER GEMINI_SLAVE
evbarm-el GUMSTIX HDL_G IMX31LITE INTEGRATOR IQ31244 IQ80310 IQ80321
evbarm-el IXDP425 IXM1200 KUROBOX_PRO
evbarm-el LUBBOCK MARVELL_NAS NAPPI NSLU2 SHEEVAPLUG SMDK2800 TEAMASA_NPWR
evbarm-el TEAMASA_NPWR_FC TS7200 TWINTAIL ZAO425
evbmips-el AP30 DBAU1500 DBAU1550 MALTA MERAKI MTX-1 OMSAL400 RB153 WGT624V3
evbmips64-el XLSATX
evbppc EV64260 MPC8536DS MPC8548CDS OPENBLOCKS200 OPENBLOCKS266
evbppc OPENBLOCKS266_OPT P2020RDB PMPPC RB800 WALNUT
hp700 GENERIC
i386 ALL XEN3_DOM0 XEN3_DOMU
ibmnws GENERIC
iyonix GENERIC
landisk GENERIC
macppc GENERIC
mvmeppc GENERIC
netwinder GENERIC
ofppc GENERIC
prep GENERIC
sandpoint GENERIC
sbmips-el GENERIC
sgimips GENERIC32_IP2x GENERIC32_IP3x
sparc GENERIC_SUN4U KRUPS
sparc64 GENERIC
2011-05-17 17:34:47 +00:00
tsutsui
08814574b2
Add proper prefix to structures.
2011-01-26 13:14:07 +00:00
tsutsui
b1361f43bd
Split softc/device_t.
2010-11-21 16:11:32 +00:00
tsutsui
4eca61515e
Make aica_round_blocksize() always return a fixed buffer size.
...
I'm not sure if this is correct, but audio playback doesn't work
on dreamcast without this workaround. (since kent-audio1 merge?)
2010-11-20 16:12:23 +00:00
uebayasi
52232a9d0d
Pull in uvm/uvm.h where UVM's page level interface is used.
2010-11-12 13:18:56 +00:00
tsutsui
68cd53d20c
- make local functions/variables static
...
- export more cons(9) functions in pvrvar.h
2010-10-24 13:34:27 +00:00
tsutsui
80b1067a63
Split device_t/softc.
2010-10-20 13:00:06 +00:00
tsutsui
0e356e23d5
Include "ioconf.h" for struct cfdriver.
2010-10-17 14:17:49 +00:00
tsutsui
83c0ebae98
Make local functions static.
2010-10-17 14:16:21 +00:00
tsutsui
07d8ce4981
Split device_t/softc.
2010-10-17 14:13:44 +00:00
tsutsui
9553e52cbf
- split device_t/softc
...
- allocate struct todr_chip_handle in per-device softc
- some cosmetics
2010-09-01 17:06:00 +00:00
tsutsui
f2d6cdb4ee
- misc KNF and cosmetics
...
- use DPRINTF() style debug printf macro
2010-09-01 16:48:00 +00:00
tsutsui
cea585929a
Make local functions static, and comment out an unused function.
2010-09-01 16:23:15 +00:00
tsutsui
a90704b5e7
Use appropriate variable data types.
2010-09-01 15:40:06 +00:00
tsutsui
938f3699d6
Replace an empty for() loop (which would be optimized out) with DELAY(1).
...
No visible performance difference.
2010-09-01 15:20:12 +00:00
tsutsui
68a1ead9c8
- use bufq(9)
...
- account busy counter of disk(9)
2010-09-01 15:08:22 +00:00
tsutsui
95919a0f0a
Return ENOTTY rather than EINVAL for unhandled ioctl(2)s.
2010-09-01 12:25:27 +00:00
tsutsui
287b6acad1
- split device_t/softc
...
- include "ioconf.h" for struct cfdriver
2010-08-31 15:17:20 +00:00
tsutsui
1f68cc819a
Set bp->b_resid properly after data transfer is complete.
...
Fixes unexpected "Bad address" errors on file read ops since January 2006.
The problem is reported and tracked by Yasushi Oshima.
2010-08-31 12:12:48 +00:00
tsutsui
244ae535ae
Add WSDISPLAYIO_LINEBYTES, required by Xorg wsfb server.
2010-06-19 08:42:48 +00:00
tsutsui
a9edf8145e
Clear RI_NO_AUTO in actual attach functions during autoconf(9)
...
for console devices that set the flag during consinit().
2010-05-15 08:53:26 +00:00
tsutsui
2e8243bab8
Set RI_NO_AUTO in ri_flg if pvr_getdevconfig() is invoked from cninit.
...
Tested on gxemul.
2010-05-15 06:48:22 +00:00
dyoung
66bdd36fe9
Use device_t, device_private().
2010-02-24 22:58:45 +00:00
tsutsui
471e528b58
Remove `volatile' qualifier from argument types of
...
struct timeval passed to todr_gettime(9) and todr_settime(9).
We no longer have an ancient and volatile struct timeval `time'
global since we have switched to MI timercounter(9) on all port.
XXX1: some of these RTC drivers still assume 32bit time_t
XXX2: some of these should be rewritten to use todr_[gs]ettime_ymdhms()
XXX3: todr(9) man page doesn't mention todr_[gs]ettime_ymdhms()
2009-12-12 14:44:08 +00:00
cegger
9480c51b04
Add a flags argument to pmap_kenter_pa(9).
...
Patch showed on tech-kern@ http://mail-index.netbsd.org/tech-kern/2009/11/04/msg006434.html
No objections.
2009-11-07 07:27:40 +00:00
tsutsui
e6821b0d4b
Add an empty bus_space_mmap(9) function as temporary workaround
...
for MI pci(4) mmap function in sys/dev/pci/pci_usrreq.c.
XXX: no bus_space_subregion(9) for g2bus.
2009-08-23 14:28:09 +00:00
cegger
df7f595ecd
Ansify function definitions w/o arguments. Generated with sed.
2009-03-18 10:22:21 +00:00
yamt
70de973662
g/c BUFQ_FOO() macros and use bufq_foo() directly.
2009-01-13 13:33:58 +00:00
marcus
e4036a331d
Removed a local variable that is no longer needed (should have been removed in last commit...)
2008-10-19 21:24:20 +00:00
marcus
8a975ad955
Replaced funky delay loop with a call to DELAY (fixed problems with newer GCCs).
2008-10-19 14:57:22 +00:00
mjf
88c41a9303
Fix debug code that had bitrotted. This allows the maple(4) driver to
...
be compiled with MAPLE_DEBUG defined.
o line 798: variable buf shadows previous local
o line 1425: event_thread is no longer a struct proc but now is
a lwp_t. Use the correct p_pid member.
2008-10-19 14:05:49 +00:00
marcus
b66028ed66
sysasic_intr_string() takes an IRL, not an IPL.
2008-08-01 20:19:49 +00:00
marcus
ae05e8ed7a
Fixed a compilation warning.
2008-08-01 11:33:06 +00:00
tsutsui
e6a3083c69
Use device_lookup_private() to get softc.
2008-06-11 14:55:30 +00:00
tsutsui
a0e4edbb58
Use device_lookup_private() to get softc.
2008-06-08 16:39:43 +00:00
ad
06c343ac94
vm_page: put TAILQ_ENTRY into a union with LIST_ENTRY, so we can use both.
2008-06-04 12:41:40 +00:00
nisimura
540dfe3a95
- assign 2 clause TNF license to the files cited as my ownership.
...
- abandon and remove my copyright notice from the three files were
copied in order to adapt HW I don't have; pvr.c, pm.c and stic.c
2008-05-26 10:31:22 +00:00
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00