Commit Graph

24135 Commits

Author SHA1 Message Date
cegger 4795ee76a4 use device_lookup_private to get softc 2008-06-12 22:28:26 +00:00
cegger 332bec333d use device_lookup_private to get softc
XXX this driver assumes unit of zero
2008-06-12 21:51:12 +00:00
cegger 17dbee905c use device_lookup_private to get softc 2008-06-12 21:46:21 +00:00
cegger b0e5b3dc77 - use device_lookup to get device_t
- use device_lookup_private to get softc
- ansify
2008-06-12 21:45:39 +00:00
dyoung 5614135da2 Elaborate on a comment. 2008-06-12 20:42:10 +00:00
rafal cf990769f1 device_private_lookup()-ification so that hpcarm (at jeast Jornada 72x)
kernels build.
2008-06-12 01:46:32 +00:00
drochner 1a9e64b4a7 mechanical changes to use device_private() or device_lookup_private()
to get softcs, makes the code compile under the stricter type checking
introduced earlier today
2008-06-11 21:25:31 +00:00
cegger 5819fc04b4 use device_lookup_private to get softc 2008-06-11 20:52:14 +00:00
cegger 669c3672ce - use device_lookup_private to get softc
- ansify
2008-06-11 20:33:12 +00:00
cegger 6a2e2c8cfd use device_lookup_private to get softc 2008-06-11 19:28:52 +00:00
cegger 78ad67cc02 remove unused variable 2008-06-11 19:27:03 +00:00
cegger 96434039ad - use device_lookup_private to get softc
- ansify
fixes build errors about pointer type mismatches in assignment
2008-06-11 18:50:59 +00:00
cegger 3e484e6172 - use device_lookup_private to get softc
- ansify
2008-06-11 18:46:24 +00:00
drochner 96a9f67868 in sme_battery_check(), explicitely check whether the battery is
present before using the values read, and clean up the logics
a bit to make it more understandable
2008-06-11 17:40:06 +00:00
drochner 733bb117b5 remove a KBC_ENABLE call in the console poll method -- this was
just a workaround and is not necessary anymore
2008-06-11 17:35:02 +00:00
drochner a39050eb5f use device_lookup_private() to get the softc -- while device/softc
are not split yet, it is better than a typecast
2008-06-11 17:32:30 +00:00
drochner ddb238521e fix some missing pieces of device/softc split 2008-06-11 17:27:59 +00:00
tsutsui d1336c20ea Use device_lookup_private() to get softc.
XXX this driver assumes cf_unit is always zero
2008-06-11 16:46:11 +00:00
cegger 7028bd34e9 use device_lookup_private to get sc
ok cube
2008-06-11 16:17:01 +00:00
drochner 5e7d2c641f don't use cfdriver_t->cd_devs directly 2008-06-11 16:09:16 +00:00
tsutsui 13a1e15f0e Use device_lookup_private() to get softc. 2008-06-11 12:41:22 +00:00
drochner 29fbb6a62e Replace the weird method to create instances by config_attach_pseudo()
as everyone else does, and remove the private table of instances which
is replaced by the table in the cfdriver.
This could get more cleanup, and I didn't split device/softc yet.
2008-06-11 10:38:44 +00:00
dyoung ac6193d02f *Always* update the desired power status of each CardBus function,
even if we cannot remove power from the function because its device
property 'pmf-powerdown' is present and equal to false.

Because we were not tracking the power status properly before, we
were not taking cards out of reset after a suspend/resume cycle on
their CardBus bridge.  We would lose the use of the card that way.
2008-06-11 07:01:54 +00:00
dyoung 3514b9346c Use device_t. 2008-06-11 06:28:18 +00:00
dyoung f100644906 Remove code that is redundant with cardbus_child_resume(), which
restores PCI configuration space and restores the power state to
D0.
2008-06-11 05:33:44 +00:00
kiyohara c3b43ec571 Support use PCI Clock(SF_CHIP_USEPCIC). We can set the value "use_pciclock"
by prop_dictionary_set_bool().
2008-06-11 02:09:16 +00:00
cegger fc8fd752ef device_private(device_lookup()) -> device_lookup_private()
ok cube@
2008-06-10 22:53:08 +00:00
he 26a302aa36 Avoid the effects of name space pollution caused by <sys/rb.h>,
which defines rb_data, by instead naming the struct field rxb_data.
2008-06-10 22:44:07 +00:00
dyoung fa64da0d81 Fix a couple of mistakes in the device_t/softc split that cause
machines such as my HP Pavilion N3270 to freeze at boot.  This
should fix PR kern/38815, too.
2008-06-10 21:19:01 +00:00
drochner 1f0a423884 use new "defpseudodev" where appropriate, and remove dummy interface
attribute definitions which were only to trick config(8)
2008-06-10 12:49:16 +00:00
freza 6e9d339816 o Split device_t/softc for agp(4).
o agp_ali.c: remove unused 'agp' member from agp_ali_softc.
o drm: agp_find_device() returns 'void *', not a device_t.
o Use device_t, cfdata_t instead of struct pointers.
o Don't cast void pointers in assignments.
2008-06-09 06:49:54 +00:00
tsutsui 9499107496 Use device_lookup_private() rathter than device_private(device_lookup()). 2008-06-08 18:34:06 +00:00
tsutsui 887a89aa5c Use device_lookup_private() rather than using cd_devs[] directly to get softc.
XXX maybe we should change a type of cd_devs[] in struct cfdriver
    from (void *) to device_t.
2008-06-08 18:18:33 +00:00
tsutsui c9a8620b99 Replace homegrown pad_find_softc() with device_lookup_private(). 2008-06-08 18:14:31 +00:00
joerg d2768df2f3 Mention 64bit support once during boot and not every time the controller
is reset.
2008-06-08 14:02:25 +00:00
tsutsui 1f459d82b5 Replace device_lookup() with device_lookup_private() on getting softc
for future device_t/softc spilt.
2008-06-08 12:43:51 +00:00
ad 536e41c542 Fix up bus_dmamap_sync calls. 2008-06-08 11:58:50 +00:00
mlelstv 6e5c763373 really set Tx thresholds 2008-06-08 11:41:26 +00:00
cegger cd3c32c639 make this build with AZALIA_DEBUG
get rid of XNAME macro
2008-06-08 08:47:05 +00:00
tsutsui b3d67eaca7 Remove unnecessary casts against void pointers. 2008-06-08 03:56:09 +00:00
tsutsui ec3c45aecf Replace device_lookup() with device_lookup_private() to get softc
after device_t/softc split.  PR kern/38885 from Jonathan A. Kollasch.
2008-06-08 03:49:26 +00:00
oster ea16b13f64 - Use bdev_strategy() instead of VOP_STRATEGY().
- Don't bother taking the v_interlock or bumping b_vp->v_numoutput --
there won't be any other writers for this bp, and so there's no point
doing this locking song'n'dance.

Patch from Juergen Hannken-Illjes.  Thanks!!!

Addresses PR#38856.  With this change I've been unable to
replicate the hard hangs.
2008-06-07 17:50:34 +00:00
freza 564b3de4f4 Split device_t/softc. Remove unused macros. 2008-06-07 16:32:38 +00:00
bouyer 36a9122525 For ATAPI, in addition to storing the short sense, report a SCSI_CHECK
condition, to that the scsipi layer will issue a request sense.
2008-06-07 12:56:57 +00:00
mlelstv 208ba41bb4 mutex.h is implied by condvar.h
param.h is required for xen
2008-06-06 20:51:51 +00:00
drochner ad077b5aaa oops, forgot to pass locators when I simplified the autoconf code 2008-06-06 17:52:02 +00:00
dyoung b9a1c75c4b Fix typo in comment. 2008-06-06 17:39:56 +00:00
jmcneill 06fd33749e uhci_device_intr_done: when re-queueing, pass pipe direction to
uhci_alloc_std_chain instead of always 1 (read). ok drochner
2008-06-06 11:21:16 +00:00
uwe b0aa5b3112 aprint_naive("\n") in attach. 2008-06-05 20:34:00 +00:00
bouyer 33a062486a Call ahci_intr() with the device's softc, not the device_t.
Should fix kern/38742
2008-06-05 18:22:02 +00:00