Commit Graph

161845 Commits

Author SHA1 Message Date
he
2f1d720086 Rename function argument from command to cmd, to make the code
actually build after the previous change.
2007-09-03 11:29:43 +00:00
xtraeme
c350e25fb3 - Always use PIO Format 1, which allows independent control of command
and data (PIO Format 0 selects the speed of the slowest drive).
- Set correctly Ultra DMA and Multi-word DMA modes.
- Update comments to be more correct after reading again the datasheet.
2007-09-03 11:16:28 +00:00
xtraeme
b1d137e8f4 Improve some comments. 2007-09-03 03:35:00 +00:00
macallan
b988fb3a70 back out the reference divider probing - doesn't work right on R1xx 2007-09-03 02:45:06 +00:00
xtraeme
dee3b63c54 Add some KASSERT(mutex_owned(&foo_lock)). 2007-09-03 01:29:51 +00:00
riz
f6f3fbbfc3 Properly support both ports of the FTDI 2232C. This allows me to
use all 16 ports of my USB-16COM-RM adapter.  I also verified that
single-port units still work as expected.
2007-09-02 22:35:25 +00:00
jnemeth
0c45a149be fix second tyop, hi jmmv@ 2007-09-02 22:12:47 +00:00
macallan
5dfb2b1c4f forgot to commit this when adding the ag10e driver - actually descend into
the ag10e directory
2007-09-02 21:35:17 +00:00
xtraeme
85f08bb0ab Fix typo in previous. 2007-09-02 21:31:24 +00:00
xtraeme
13af8b9adc Add the -I flag that skips sensors with invalid state. They are shown
by default, but this is for users that don't want to print them.
2007-09-02 21:25:24 +00:00
ober
fe1557ca83 regen. added Intel LPC 82801HEM and 82801IO 2007-09-02 21:03:56 +00:00
ober
51d0f6cc38 Add Intel LPC 82801HEM and 82801IO entries 2007-09-02 21:02:52 +00:00
xtraeme
b7b3d8fc09 Document the "generic-state-string" object in sensor's dictionary. 2007-09-02 20:35:03 +00:00
xtraeme
e5707563c8 Document the new sensor units type: ENVSYS_GSTRING and its member
in the envsys_data_t struct.
2007-09-02 20:27:03 +00:00
dyoung
88399b6877 We cannot sleep in a software interrupt, so do not sockaddr_dl_alloc(...,
M_WAITOK).  Instead, sockaddr_dl_init() a sockaddr_dl on the stack.
2007-09-02 19:42:21 +00:00
xtraeme
cba98bab30 Add a new sensor of type ENVSYS_GSTRING. This is useful to print
the current battery charge state.

$ envstat -dacpibat0 -s"acpibat0 charge state"
  acpibat0 charge state:     NORMAL
$

It will show WARNING, CRITICAL, LOW or NORMAL depending on the
state it is.
2007-09-02 19:38:32 +00:00
xtraeme
1b3709ecde Add a new sensor type to sysmon_envsys(9): ENVSYS_GSTRING.
ENVSYS_GSTRING (aka Generic String) uses the genstr member in
the envsys_data_t struct to add a generic string that envstat(8)
will show as value or state.

It's like the ENVSYS_DRIVER, but doesn't use value_cur. Below
is the dictionary created on these sensors:

<dict>
	<key>description</key>
	<string>acpibat0 charge state</string>
	<key>generic-state-string</key>
	<string>NORMAL</string>
	<key>monitoring-supported</key>
	<false/>
	<key>state</key>
	<string>valid</string>
	<key>type</key>
	<string>Generic string</string>
</dict>

Note that it's limited to 32 chars, but we can grow it if needed.

envstat(8) will print ENVSYS_GSTRING sensors as:

$ envstat -dacpibat0 -s"acpibat0 charge state"
  acpibat0 charge state:     NORMAL
$
2007-09-02 19:36:59 +00:00
jmmv
12d3047f85 Fix typo in last entry. Hi jnemeth@! 2007-09-02 19:36:06 +00:00
agc
b35bda38e1 Cosmetic change to a long line
Don't reset the target session's idea of the disk id whenever input is received.
2007-09-02 18:50:49 +00:00
agc
028ef264bb Only give the AI_NUMERICSERV hint to getaddrinfo() if it's defined. 2007-09-02 18:48:45 +00:00
macallan
4aee9ec48c always try to probe the reference divider, use default only if that fails 2007-09-02 18:47:27 +00:00
macallan
d7a5c78c74 look for an ATY,RefCLK property and pass it to the console device if found.
For radeonfb so it doesn't have to guess the reference clock.
2007-09-02 18:45:36 +00:00
tron
07347616e8 Use "ipv6-icmp" instead of "icmp6" to allow loading these rules again.
Patch supplied by Daniel Horecki in PR bin/36874.
2007-09-02 15:28:43 +00:00
pooka
2c096f9eae "proper" return value handling 2007-09-02 13:55:27 +00:00
pooka
e61b08e4b2 fix assert 2007-09-02 13:54:21 +00:00
pooka
a1c82d9717 * Give rump_vfs_root() the option of returning the vnode unlocked.
* initialize syncdelay
* implement io_sync handler
2007-09-02 13:29:50 +00:00
degroote
6471b574ca The service queue isn't used anymore so don't allocate it.
It saves a bit of memory and reduces diff with other BSD.
2007-09-02 12:18:05 +00:00
pooka
420d610664 include bsd.own.mk for NETBSDSRCDIR
this time noticed by mjf
2007-09-02 12:00:12 +00:00
degroote
58d834d34b Fix scanning code for wpi based on the iwi code.
Keep track of the status of the scan.
On a transition IEEE80211_S_SCAN -> IEEE80211_S_SCAN, don't stop the previous
scan, finish the current scan.
When we receive some frames in the IEEE80211_S_SCAN state, set current_channel
based on the value advertised in beacons or probre reponse.

Moreover, it fixes WPA issues for me.
2007-09-02 11:37:30 +00:00
joerg
ad61ac15d2 Don't define bool, false and true. Use stdbool.h. 2007-09-02 09:57:16 +00:00
dyoung
db10b0d586 m_copym(..., 0, M_COPYALL, ...) -> m_copypacket(..., ...). 2007-09-02 07:18:55 +00:00
dyoung
da055795a8 Delete unused variable. 2007-09-02 07:03:22 +00:00
dyoung
c87aad4f08 Simplify code, add debug statements, and fix a bug that could
soclose() a UDP socket that a struct file still pointed at.
2007-09-02 07:01:41 +00:00
dyoung
6173a47677 m_copy() was deprecated, apparently, long ago. m_copy(...) ->
m_copym(..., M_DONTWAIT).
2007-09-02 03:12:23 +00:00
dyoung
76b1df3703 Get rid of struct oifreq/ifreq compat code, because ifioctl() has
taken care of this for us.
2007-09-02 01:50:58 +00:00
dyoung
0af5ef16d6 Be consistent: use the prefix sc_ for all members of the gre_softc. 2007-09-02 01:49:49 +00:00
macallan
01e17775ae don't include machine/autoconf.h - we don't need it (anymore?) 2007-09-02 01:41:29 +00:00
macallan
20316fb57c defflag DEBUG_SGSMIX 2007-09-02 01:40:46 +00:00
xtraeme
0b4713a20a Convert onewire(4) to use rwlock(9) rather than lockmgr(9). 2007-09-02 00:55:33 +00:00
xtraeme
e8bf5d91f9 Do not enable monitoring for the sensors... if somebody wants this,
it may be enabled via userland.
2007-09-02 00:54:50 +00:00
xtraeme
bed35595ed Attach to the ICH6 AC-97 Modem function. 2007-09-02 00:48:52 +00:00
xtraeme
03b7809379 Add <sys/mutex.h> rather than <sys/lock.h>. 2007-09-02 00:44:07 +00:00
xtraeme
c371d1d093 Convert the sysmon watchdog framework to use mutex(9) rather than
simple_locks and initialize them on init_main via sysmon_wdog_init().

All the sysmon code now is cleaned up and doesn't use old style locking.
2007-09-02 00:41:24 +00:00
xtraeme
e5db35db44 typo: ENVSYS_FVALID -> ENVSYS_SVALID. 2007-09-02 00:31:23 +00:00
xtraeme
fda9e03ae4 Remove unused (and inexistent) flag. 2007-09-02 00:28:28 +00:00
dyoung
36a3794513 Protect userland from ifreq_getaddr() w/ #ifdef _KERNEL. 2007-09-02 00:24:18 +00:00
pooka
3f3cac88a3 Make bioops a pointer and point it to the softdeps struct in softdep
init.  Decouples "options SOFTDEP" from the main kernel and ffs code.
2007-09-01 23:40:21 +00:00
riz
a550eae132 For SMBus, add the ability to enumerate devices on the bus.
This does NOT identify the devices, merely indicates the
presence of devices at certain addresses.  Tested on ichsmb
and nfsmb - other SMBus devices will need to ensure the
proper bus type is set. (I2C_TYPE_SMBUS)

From Nicolas Joly, via Paul Goyette, in PR#36744.
2007-09-01 22:19:25 +00:00
pooka
eb606989ed avoid uninitialized warning from impossible enum 2007-09-01 22:10:10 +00:00
jmmv
54a752b11b Properly use the return value of a bswap16 call. Caught when building
a kernel with -O0.
2007-09-01 22:01:53 +00:00