cube
8bc324423f
Split device_t and softc for isa(4).
2008-03-15 16:56:29 +00:00
cube
a22d8d4abb
Split device_t and softc for pckbc(4) and its attachments.
2008-03-15 13:23:24 +00:00
cube
d293cfca1a
Split device_t and softc for all attachments of vga(4).
2008-03-14 22:12:08 +00:00
cube
607ead0ef4
Split device_t and softc for all com(4) devices (well, everything that
...
uses a com_softc backend). Use proper types and ansify where appropriate.
2008-03-14 15:09:09 +00:00
cube
cf80f73d17
Split device_t and softc for the NE2000 Ethernet chip and all its variants
...
and attachments. Use device_t accessors, correct types, and ANSIfy when
appropriate.
2008-03-12 14:31:11 +00:00
cube
8ecf8999bf
Split the softc from the device_t for all lpt(4) variants and attachments
...
except the ppbus stuff (which doesn't compile) and ulpt(4) which is
unrelated and can be dealt with separately.
As usual, it comes with related cosmetic changes.
2008-03-07 17:15:51 +00:00
cube
0c4bbfd7c5
Fix a softc split fallout.
2008-03-05 22:46:43 +00:00
xtraeme
66149243ef
struct cfdata * -> cfdata_t (for consistency).
2008-03-05 15:45:36 +00:00
xtraeme
3680f71913
Split device_t/softc in the lm(4) driver and its attachments, and
...
other related cosmetic changes.
2008-03-05 15:41:31 +00:00
cube
df77590f4c
Fix fallout from midi(4)'s softc split.
2008-03-05 10:48:48 +00:00
dyoung
cee019495b
The attimer (sc_timer) is not actually a child of pcppi, and pcppi
...
does do not hold references to any other device, so provide an
empty child-detachment method.
2008-03-04 17:11:03 +00:00
cube
926915cf40
- Split device_t and softc for pcppi(4) and attimer(4)
...
- Change the attimer <-> pcppi communication using device_t so that
pcppi(4) doesn't have to know about the contents of struct attimer_softc.
XXX pcppi's childdet function is completely wrong. This has to be
XXX revisited later.
2008-03-04 16:35:18 +00:00
cube
263facc4c0
Use CFATTACH_DECL_NEW and other related cosmetic changes.
2008-03-04 14:59:35 +00:00
xtraeme
61c10fc48e
Change my email address to the netbsd one.
2008-03-04 11:31:16 +00:00
rmind
c6186face4
Welcome to 4.99.55:
...
- Add a lot of missing selinit() and seldestroy() calls.
- Merge selwakeup() and selnotify() calls into a single selnotify().
- Add an additional 'events' argument to selnotify() call. It will
indicate which event (POLL_IN, POLL_OUT, etc) happen. If unknown,
zero may be used.
Note: please pass appropriate value of 'events' where possible.
Proposed on: <tech-kern>
2008-03-01 14:16:49 +00:00
dyoung
e4f3892584
Use pmf_device_register1() instead of shutdownhook_establish() to
...
register com_cleanup() as the shutdown hook.
Add a generic suspend routine. Suspend and resume com@isa.
Protect against dereferencing a NULL softc in comioctl().
Destroy both a mutex and a callout in com_detach().
Cosmetic: use aprint_*_dev(). Use PMF_FN_ARGS, PMF_FN_PROTO.
2008-02-29 07:02:04 +00:00
dyoung
f580a3a869
Use PMF_FN_ARGS, PMF_FN_PROTO.
2008-02-29 06:13:39 +00:00
dyoung
82d7506fef
Use device_t and accessors.
2008-02-28 00:20:04 +00:00
dyoung
212fa79969
Suspend, resume, detach.
...
Use mutex(9) and condvar(9) instead of splbio(9)/splx(9) and
tsleep(9)/wakeup(9).
Use device_t and accessors. Use aprint_*_dev().
2008-02-22 23:40:49 +00:00
dyoung
288f7bb3b8
Use device_t and accessors. Use aprint_*_dev().
...
Add method to detach child.
2008-02-22 23:26:11 +00:00
dyoung
27794e53e5
Add methods to detach lpt at isa.
2008-02-22 20:53:58 +00:00
dyoung
3d8a594471
Let the compiler decide: inline -> static, register -> .
2008-01-31 18:45:45 +00:00
dyoung
8c145c8134
Cosmetic: constify, KNF, use device_t and accessors, use
...
aprint_normal_dev() instead of printf("%s: ...", dv->dv_xname).
2008-01-31 18:32:51 +00:00
he
0a4814ccdc
Do a dummy pmf_device_register() in pcppi_attach() instead of only
...
in pcppi_isa_attach(), so that pcppi at acpi doesn't become an obstacle
to suspending.
Looked over by jmcneill.
2008-01-30 12:30:01 +00:00
dyoung
bf192f5d8d
In pcppi_detach(), s/pmf_device_register/pmf_device_deregister/.
...
Why that never blew up when I tested, I will never know. Thanks
wiz@ for catching my mistake.
2008-01-10 08:55:31 +00:00
dyoung
636e434283
Support pcppi(4) detachment.
...
Use device_t, device_private(). Get rid of a struct device * cast.
2008-01-10 07:58:39 +00:00
dyoung
3a66b9167f
Let us detach atabus* from wdc*, and wdc* from isa*.
...
Use device_t, device_private().
2008-01-10 07:44:07 +00:00
ad
0664a0459b
Start detangling lock.h from intr.h. This is likely to cause short term
...
breakage, but the mess of dependencies has been regularly breaking the
build recently anyhow.
2008-01-04 21:17:40 +00:00
dyoung
09fd56f9ec
Detach attimer at acpi, attimer at isa.
2008-01-03 01:21:44 +00:00
ad
4a780c9ae2
Merge vmlocking2 to head.
2008-01-02 11:48:20 +00:00
dyoung
80c0fcd21b
Improve device detach routine. Now I can detach nsclpcsio0 and
...
its children.
Fix an off-by-one bug in the sensor initialization which stopped
it from completing.
Extract sensor initialization into a new subroutine. If there is
an error while initializing sensors, do not let sc_sme dangle.
2008-01-02 10:21:08 +00:00
dyoung
66938db654
Cosmetic: fix indentation.
2008-01-02 02:25:27 +00:00
dyoung
fd5d1d790d
Use device_t, device_private(), aprint_error_dev().
2007-12-31 09:12:18 +00:00
wiz
41643cbfd9
Proxy-commit for xtraeme:
...
Use sysmon_wdog_unregister(), not sysmon_wdog_register(), in
itesio_detach().
2007-12-31 01:53:58 +00:00
wiz
2af02278c7
Proxy-commit for xtraeme:
...
add dependency for itesio on sysmon_wdog.
2007-12-31 01:52:34 +00:00
xtraeme
a6d89167f6
Erm, update another comment that was outdated with latest changes.
2007-12-29 06:18:35 +00:00
xtraeme
05c541c9b4
Update a comment that I wanted to correct for long time now...
2007-12-29 06:15:47 +00:00
xtraeme
7abc984e72
Added support for the Watchdog Timer built in the IT871[268] Super I/Os.
...
The WDT supports any value between 1 and 65535 seconds (or minutes, but
but the driver only uses seconds).
2007-12-29 06:05:06 +00:00
perry
b6a2ef7569
Convert many of the uses of __attribute__ to equivalent
...
__packed, __unused and __dead macros from cdefs.h
2007-12-25 18:33:32 +00:00
xtraeme
8870106a7d
Do not append the device name into the sensor's description, that's
...
useless and redundant.
2007-12-21 01:23:41 +00:00
dyoung
f2a1e06d0a
Use __arraycount().
2007-12-20 18:45:32 +00:00
christos
f54e064ee9
add null pmf handlers.
2007-12-16 19:01:35 +00:00
dyoung
8fc7c0c5ca
Add a resume handler for com@isa, using Jared McNeill's suggested
...
code from current-users. com@acpi, et cetera, remain to be done.
2007-12-14 03:36:54 +00:00
garbled
41918d8024
Move the elink probe code from files.isa to the common conf/files so that
...
MCA without isa can compile. fix by cube.
2007-12-13 21:23:48 +00:00
xtraeme
fcad73742f
Check return value of pmf_device_register(), pointed out by joerg.
...
Looks like the pmf(9) manpage declared it as void and not bool...
2007-12-13 15:36:29 +00:00
lukem
ceed9c722c
use __KERNEL_RCSID()
2007-12-11 11:52:26 +00:00
xtraeme
747de0248d
Register to pmf(9).
2007-12-09 20:59:37 +00:00
jmcneill
4c1d81b2b5
Merge jmcneill-pm branch.
2007-12-09 20:27:42 +00:00
dyoung
550024b13d
Use IFADDR_EMPTY().
...
(This driver should go away, comments indicate that it does not
even compile.)
2007-12-05 18:23:23 +00:00
pooka
4e38160d4d
Do not "return 1" from kqfilter for errors. That value is passed
...
directly to the userland caller and results in a mysterious EPERM.
Instead, return EINVAL or something else sensible depending on the
case.
2007-12-05 17:19:46 +00:00