summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2010-03-20Fix the dbcool_{get,set}_limits() routines to properly deal with min/maxpgoyette
values on temp limits. The actual ranges for temp limits varies if the chip is running in "extended temperature" mode, so we need to handle this difference, too. Verified on my home machine which runs in extended-temp mode and by njoly@ on a machine which does runs in the older 2s-complement mode.
2010-03-20Add PCI_BAR(n) for the nth Base Address Register.dyoung
2010-03-19Replace some magic numbers with macro. Tested on SMC_TT on atari.tsutsui
2010-03-19Misc KNF.tsutsui
2010-03-19No need to override mem_ring value in ne2000_ipkdb_attach()tsutsui
since a wrong calculation in dp8390_ipkdb_attach() was fixed.
2010-03-19Remove aiboost(4) as obsolete and redundant since the introduction of aibs(4).cnst
http://mail-index.netbsd.org/tech-kern/2010/03/06/msg007458.html Reviewed by <pgoyette>, <cegger>, <jruoho>, <tech-kern>.
2010-03-19Modify previous commit. The routine to deliver events is intended to bepgoyette
exported to device drivers, so rename it and move the declaration to <dev/sysmon/sysmonvar.h>
2010-03-19support W83667HG (0xa5) in wbsio(4); its hw mon is already supported by ↵cnst
lm(4) as W83627DHG (0xc1)
2010-03-19Remove superfluous cast (device_t to device_t).dyoung
2010-03-19Use Cardbus_intr_disestablish() instead of cardbus_intr_disestablish().dyoung
Get rid of a (short) staircase in ex_cardbus_detach().
2010-03-19Don't pick up the network-interface, ethernet, and 802.11-relateddyoung
definitions by chance (or by the bus-specific front-end #including them!). #include them here, instead.
2010-03-19Don't pick up the <sys/sysctl.h> definitions by chance,dyoung
but #include here.
2010-03-19Separate event delivery from polling and limit evaluation inpgoyette
sme_events_worker(). Provide a wrapper that can be called from sensor drivers' interrupt routines to find and deliver a specific event. XXX Actually updating sensor drivers (and their parent devices) to XXX have interrupts is a future enhancement. This is simply an XXX enabler.
2010-03-18This is *always* compiled with #define rbus 1, so get rid of thedyoung
conditional compilation. Simplify interrupt (dis)establishment by two source transformations: - cardbus_intr_disestablish(cc, cf, ih); + Cardbus_intr_disestablish(ct, ih); - ih = cardbus_intr_establish(cc, cf, ...); + ih = Cardbus_intr_establish(ct, ...); The identical change to a few other CardBus NICs has not caused any problems, as expected, so I'm going to commit this rather safe change and get on with the work. Testers have been enlisted. I will revisit this change if I get any negative responses.
2010-03-18Simplify interrupt (dis)establishment by two source transformations:dyoung
- cardbus_intr_disestablish(cc, cf, ih); + Cardbus_intr_disestablish(ct, ih); - ih = cardbus_intr_establish(cc, cf, ...); + ih = Cardbus_intr_establish(ct, ...); The identical change to a few other CardBus NICs has not caused any problems, as expected, so I'm going to commit this rather safe change and get on with the work. Testers have been enlisted. I will revisit this change if I get any negative responses.
2010-03-18This is *always* compiled with #define rbus 1, so get rid of thedyoung
conditional compilation. Simplify interrupt (dis)establishment by two source transformations: - cardbus_intr_disestablish(cc, cf, ih); + Cardbus_intr_disestablish(ct, ih); - ih = cardbus_intr_establish(cc, cf, ...); + ih = Cardbus_intr_establish(ct, ...); The identical change to a few other CardBus NICs has not caused any problems, as expected, so I'm going to commit this rather safe change and get on with the work. Testers have been enlisted. I will revisit this change if I get any negative responses.
2010-03-17Silence errors from the integer evaluations in case the objects are not found.jruoho
(This was too verbose even for ACPI_DEBUG.) Also fit the status messages to one line during boot by using aprint_verbose() for extra information.
2010-03-17Print also the so-called "granularity" values when the _BIF is evaluated.jruoho
These refer to the smallest increment in capacity that the battery is capable of measuring.
2010-03-17Remove the technology "sensor" (a fixed constant). Report this informationjruoho
in an improved output when the battery information changes (i.e. device attachment or battery removal/insertion).
2010-03-17Remove the timer-based check in the sensor refresh routine. We henceforthjruoho
trust that the sysmon_envsys(9)'s polling is functioning properly. Discussed with drochner@, jmcneill@, and pgoyette@.
2010-03-17Fix the testing of temporarily unknown values.jruoho
2010-03-17Move the low and warning capacity sensors to the limits framework providedjruoho
by sysmon_envsys(9).
2010-03-16Implement character drawing by hardware so we don't need to map the framebuffermacallan
anymore. Also do some cleanup, remove no longer relevant debugging code etc.
2010-03-16Do not overwrite a ISO9660 partition (which the sunlabel can not properlymartin
represent, but the cd driver carefully crafted including session data). This makes it possible to just mount cd0a as cd9660fs on a sparc* install CD. Solution suggested by <mlelstv>.
2010-03-16Allow this driver to build for ofppc as well.he
2010-03-16Remove the call to AcpiGetType() in acpi_make_devnode(). This is the samejruoho
information as ACPI_DEVICE_INFO::Type, obtained later by AcpiGetObjectInfo().
2010-03-16Remove unused headers.jruoho
2010-03-16With the intent of making 'struct acpi_devnode' as the central place forjruoho
information related to ACPI device nodes: (a) introduce a generic scan function for ACPI device driver "capabilities", and (b) eliminate local data structures from ACPI wake-devices. Discussed with jmcneill@.
2010-03-15Make this compile on sparc64:dyoung
1 s/next_tick/next_tint/ because next_tick shadows a global on sparc64. 2 Fix the bus-barrier helper routines, which had the tag & handle swapped (!!). Move the helpers from rtwreg.h to rtwvar.h, and change RTW_BARRIER() into an inline subroutine called rtw_barrier().
2010-03-15rbus is always #defined as 1, so unifdef -D rbus=1.dyoung
2010-03-15Delete unused member ct_bar[] from struct cardbus_devfunc.dyoung
2010-03-15Delete unused functions cardbus_save_bar() and cardbus_restore_bar().dyoung
2010-03-15Delete unused members ct_rbus_iot and ct_rbus_memt from structdyoung
cardbus_devfunc.
2010-03-15The monitor struct member is gone. Make this compile again.enami
2010-03-15Remove duplicate USB_PRODUCT_LINKSYS3_WUSB11V28 entry.jakllsch
Pointed out by <db@db.net> in #NetBSD-code.
2010-03-14Use device_suspensor_t instead of struct device_suspensor.dyoung
2010-03-14For RAID sets which have no parity (i.e., RAID level 0) and therefore canjld
never have a parity map, make the parity map ioctls fail with EINVAL. This makes `raidctl -m` print a scary-looking error on such sets, which is an improvement over the previous behavior of falsely claiming that the parity map would be enabled on the next configuration.
2010-03-14Remove setting of edata->monitor since that member no longer exists.pgoyette
2010-03-14Retire the 'monitor' member of the envsys_data_t. It was only used inpgoyette
one place, and functioned as a logical OR of the ENVSYS_FMON* flag bits.
2010-03-14add device id and quirks for iPhone 3GS (just copy the 3G ones)explorer
2010-03-14regeneratemrg
2010-03-14add several core i7 devices, and some more ricoh card reader controllers.mrg
2010-03-13Fix PR kern/42838 using option #1 as described by KIYOHARA Takashi inscw
http://mail-index.netbsd.org/current-users/2010/02/20/msg012654.html Add a comment in struct ucom_methods to explain usage of 'ptr' and 'count' in the ucom_read handler.
2010-03-13Some KNF.tsutsui
2010-03-13- include "ioconf.h" for struct cfdriver we_cdtsutsui
- remove unused macro
2010-03-13- make local functions statictsutsui
- const'ify
2010-03-13u_int8_t -> uint8_ttsutsui
2010-03-13Misc KNF.tsutsui
2010-03-13Add Broadcom BCM5482.kiyohara
It tested on OpenBlockS600. (coming soon ;-) And reorder.
2010-03-13Regen.kiyohara