Commit Graph

161673 Commits

Author SHA1 Message Date
bouyer 26281fbd54 Fix build failure when for kernel with options LOCKDEBUG.
Pointed out by Christoph Egger.
2007-09-04 21:19:11 +00:00
xtraeme 9622f8ee94 s/ENVSYS_FMONDRVSTATE/ENVSYS_FMONSTCHANGED/. Noticed by Manuel Bouyer@. 2007-09-04 20:46:00 +00:00
xtraeme f0d0cd6d25 Explain the events that this driver will send to powerd(8). 2007-09-04 17:27:41 +00:00
xtraeme f1a8abb9c7 Xref powerd(8). 2007-09-04 17:19:51 +00:00
xtraeme 29742be0c4 Only three events are reported now:
normal
	state-changed
	user-capacity

But there's a fourth argument passed to the script that will report
current state description.
2007-09-04 16:59:49 +00:00
xtraeme debeab5278 - Use a ENVSYS_BATTERY_STATE sensor rather than ENVSYS_GSTRING.
- Use ENVSYS_FMONSTCHANGED on the ENVSYS_BATTERY_STATE sensor to monitor
  state changes.
2007-09-04 16:56:30 +00:00
xtraeme b5822e79d4 Update to match current code. 2007-09-04 16:55:02 +00:00
xtraeme 6263ca5fa3 Update to match current kernel code. 2007-09-04 16:54:37 +00:00
xtraeme 5b53183e98 - Remove ENVSYS_GSTRING and the genstr member from envsys_data_t.
(at least three or four persons were against it).
- Add a new sensor type: ENVSYS_BATTERY_STATE, this uses value_cur
  and some predefined values in a static table, like ENVSYS_DRIVE.
- Move all static tables to sysmon_envsys_tables.c and use a function
  on it to retrieve a pointer to the struct of the specified type.
- Rename the ENVSYS_FMONDRVSTCHANGED to ENVSYS_FMONSTCHANGED and make
  it generic for Battery state and drive sensors (this flag enables
  monitoring on these sensors when state has been changed).
- Update sysmon_penvsys_event() to report state changes on
  ENVSYS_BATTERY_STATE sensors and remove other type of events, with
  PENVSYS_EVENT_STATE_CHANGED they are not necessary anymore.
2007-09-04 16:54:02 +00:00
pooka 96356ccdfd init tbr_callout in all cases (hi ad!) 2007-09-04 14:17:16 +00:00
yamt 7f9dc6bf93 compilation fixes. (simple_lock/unlock -> mutex_spin_enter/exit) 2007-09-04 13:50:26 +00:00
tls ae75a5cdbe This program is a host tool, so when we use newfangled C features like
PRIxyz we have to ensure it still builds on hosts with Old compilers.
Noticed while building a cross-toolchain on FreeBSD 4.
2007-09-04 00:34:58 +00:00
pooka 89e48410c4 * don't allow the file server to specify a node size to be VSIZENOTSET
* KASSERT that VNOVAL == VSIZENOTSET
2007-09-04 00:11:38 +00:00
drochner dce09ea075 clean up some definitions around rune_t which are not needed anymore 2007-09-03 20:31:56 +00:00
xtraeme dc25cf6f51 Add uchcom(4) and uslsa(4). 2007-09-03 20:04:22 +00:00
xtraeme 2f72b95a3d Add uchcom(4). 2007-09-03 20:02:58 +00:00
mgrooms edac7dae7c Correct the syntax for wins4 in the man page and add nbns4 as an alias. Pointed out by Claas Langbehn. 2007-09-03 18:08:42 +00:00
tshiozak 0506f23195 add a new driver uchcom(4). 2007-09-03 18:05:19 +00:00
tshiozak 260d6cea73 add manpage for uchcom(4). 2007-09-03 18:02:16 +00:00
tshiozak d0a32c7b25 add support for WinChipHead CH341/340 USB-Serial bridge. 2007-09-03 17:57:36 +00:00
tshiozak ad88e4382b sync with the last change of usbdevs. 2007-09-03 17:43:20 +00:00
tshiozak 64af3fdf23 add vendor WINCHIPHEAD and product CH341SER. 2007-09-03 17:41:41 +00:00
yamt fc2f951ae3 yamt-lazymbuf-base5 2007-09-03 15:01:01 +00:00
kiyohara bfdbbbaec2 No need to check the NULL, m_gethdr() was called always with M_WAIT. 2007-09-03 12:42:50 +00:00
kiyohara 6410e0f367 No need to check the NULL, m_gethdr() calls always with M_WAIT. 2007-09-03 12:38:27 +00:00
pooka 91872d550d xref refuse, don't bump date 2007-09-03 12:34:21 +00:00
he 97bd63dbfb Rename function argument from command to cmd, to make the code
actually build after the previous change.
2007-09-03 11:32:07 +00:00
he 3363bff15a Rename function argument from command to cmd, to make the code
actually build after the previous change.

Also remove a local variable which is no longer used.
2007-09-03 11:30:04 +00:00
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