Commit Graph

26497 Commits

Author SHA1 Message Date
msaitoh
9afdc6ebb0 - Add some PCIe config registers.
- The register at 0x1c is not Control Status register. It contains Control
  bits only. Rename it.
2010-02-12 04:01:07 +00:00
joerg
b6f836a257 Register with pmf. 2010-02-11 18:24:48 +00:00
drochner
ff24957791 put back the "vt100base_data" variable which was souce of confusion,
it is really needed, as noted by Geoff Wing
2010-02-11 10:07:14 +00:00
cnst
e9089f1372 remove unnecessary AIBS_MONLIMITS ifdefs, no binary change; ok pgoyette 2010-02-11 06:54:57 +00:00
skrll
6abd7610a4 Remove accidental commit. 2010-02-10 22:25:08 +00:00
skrll
1caeee472f Oops. Whitespace in previous. 2010-02-10 20:54:46 +00:00
drochner
dd64f9a8aa add some more mappings from punctuation and accented characters to
more or less adequate replacements in the builtin IBM character set
2010-02-10 19:45:30 +00:00
drochner
265bc2e92c Allow big parts of the vt100 emulation code (what is in
wsemul_vt100_subr.c) to be used by alternative terminal emulators
(which are not in-tree yet but can be loaded as LKMs).
For this, split out that part of the state structure which is used
by the sharable code and include that in the original vt100 state.
This is only a query-replace and sed(1) job for now, it makes sense
to rearrange things a bit so that even more code can be changed --
will do so later.
2010-02-10 19:39:39 +00:00
hubertf
d181448ea1 regen 2010-02-09 23:14:19 +00:00
hubertf
d96ae1b974 Add entry for Juniper Networks Experimental Clock Version 0
Fixes PR kern/42742
2010-02-09 23:13:09 +00:00
njoly
b7a0ac57a9 Kill extra semi-column. 2010-02-09 23:04:15 +00:00
sborrill
204adc86e7 Tweak comment about keyboard mapping. 2010-02-09 16:01:17 +00:00
pgoyette
b3ab12f08e Correct setting of bits in the "generic thermistor" mode. Cut&paste
error pointed out by njoly@
2010-02-09 13:59:01 +00:00
msaitoh
992a078917 regen. 2010-02-09 04:40:52 +00:00
msaitoh
f957ef5b6e Make some bge's name close to the real product names. 2010-02-09 04:40:21 +00:00
cnst
4f3a148428 * s/misformed/malformed/;
* don't change .status to anything other than SVALID and SINVALID in refresh();

suggested by <pgoyette>
2010-02-09 03:32:57 +00:00
cnst
8ea42bc9e8 use ACPI_INTEGER and PRIx64, and check success of sensor_attach; suggested by jruoho (Jukka Ruohonen) 2010-02-09 03:26:44 +00:00
cnst
1c23afa3cb New aibs(4) driver for ASUSTeK AI Booster (ACPI ATK0110) hardware monitor
with limit support.

        http://thread.gmane.org/gmane.os.netbsd.devel.kernel/35654

Reviewed by <pgoyette>, <jruoho> and <tech-kern>.
2010-02-09 03:19:50 +00:00
msaitoh
38a7bbf82a Add newer cars supports. Tested on MegaRAID SAS 9260-8i.
- Add MFI gen2 support from OpenBSD.
 - Add entry for MegaRAID SAS 9260-8i
2010-02-09 00:05:18 +00:00
msaitoh
40b88c199a regen. 2010-02-08 23:59:09 +00:00
msaitoh
7d9d71b76c Add some MegaRAID Entries 2010-02-08 23:58:38 +00:00
msaitoh
8b946f18cd Fix a bug that the system which has no logical volume panics in shutdown
hook. Without any logical volume, sysmon_envsys_register() fails. On such
case, sc->sc_sme must be NULL for the detach. Reviewed by dyoung and bouyer.
2010-02-08 23:54:33 +00:00
pgoyette
daefdf6156 After reviewing the datasheets, most of the supported Winbond chips can
handles the new flags for selecting sensor type.  Update code and man
page accordingly.
2010-02-08 23:10:35 +00:00
pgoyette
fe173e0687 Add temp-sensor type selection (via autoconfig flags). Currently only
enabled for W83627HF but easily extended to others if appropriate.

Fixes PR kern-42758
2010-02-08 21:42:01 +00:00
snj
b2cd31c11a Add ZTE MF626. From Marc Vertes in PR kern/41667. 2010-02-08 20:45:43 +00:00
snj
72facffcbf Regen. 2010-02-08 20:44:01 +00:00
snj
3448c37ee6 Add ZTE MF626. From Marc Vertes in PR kern/41667. 2010-02-08 20:43:00 +00:00
pgoyette
5c907aca1a Recognize the i2c bus on the AMD768 PCI-ISA/LPC Bridge
Resolves PR/42759 - thanks Michael Stapelberg
2010-02-07 20:55:46 +00:00
mlelstv
1ce16876f7 d_psize routine returns a number of blocks or -1 on error.
d_dump routine returns 0 or an error code.
2010-02-07 16:04:31 +00:00
uebayasi
5b83bdc89a KNF.
XXX This should use bus_dma(9).
2010-02-07 03:24:15 +00:00
cegger
fbddcef366 scsi_sense_data: add comments taken from src/sys/dev/ieee1394/sbp.h 2010-02-06 23:13:59 +00:00
pgoyette
a0a7ab3ea8 Import my experimental ACPI SMBus Control Method Interface driver
XXX Should not be enabled in any configuration file until you have
XXX disabled corresponding "native" i2c driver!  Read the acpismbus(4)
XXX man page!
2010-02-06 20:10:18 +00:00
tnn
6c77458a9c Attach to SMBus on Intel P55 chipset. 2010-02-06 14:09:25 +00:00
tonio
9313df2220 Add uthum(4) driver from openbsd, adapted to handle both
TEMPerHUM and TEMPer devices
2010-02-06 11:17:17 +00:00
tonio
5cdb747656 Add uthum driver, ported from openbsd
Handles Tenx temperature sensors TEMPer and TEMPerHUM
and declares them to envsys
2010-02-06 11:14:41 +00:00
tonio
4557895744 regen 2010-02-06 10:15:48 +00:00
tonio
4d618aaaf1 Add TENX vendor and two devices 2010-02-06 10:11:55 +00:00
jruoho
7ed7fa0c2a Fix a typo in one DPRINTF (s/edata->des/edata->desc/). 2010-02-05 19:22:25 +00:00
drochner
f4b5ad99de add some missing (mostly hungarian or polish) dead accent combinations,
from lkundrak's netbsd-sk_cz-howto
2010-02-05 18:26:38 +00:00
pgoyette
1fe73d6688 One more callback of sme_refresh() routine needs to check first that
there is a routine to be called!
2010-02-05 17:44:27 +00:00
pgoyette
4c60416219 If the AC adapter is flagged with SME_DISABLE_REFRESH, don't try to call
its refresh() callback.  Just assume that its value has been properly
updated by other means.
2010-02-04 18:06:53 +00:00
msaitoh
929e6a0580 Don't increment when ICR_RXO is set because we count them by WMREG_MPC
counter.
2010-02-04 10:20:54 +00:00
msaitoh
c3aa9a683a - Count Receive error, CRC error, Alignment error, Symbol error, Sequence
error, Carrier extension error and Receive length error into ierror.
  Fixes PR#30349 reported by UMEZAWA Takeshi.
- Count Missed packet (rx fifo overflow) and Receive no buffers (rx ring full)
  into iqdrops.
2010-02-04 09:13:23 +00:00
macallan
7f9ad6b70b do not attach to Powrbook G3 onboard Firewire controllers until someone with
access to the hardware can figure out why it deadlocks during device
discovery
2010-02-03 19:32:40 +00:00
macallan
e855577f1c regen 2010-02-03 19:28:07 +00:00
macallan
c514208da5 add Apple PowerBook G3 Firewire controllers 2010-02-03 19:27:24 +00:00
msaitoh
036c4f999b s/u_int/uint/ 2010-02-03 15:37:51 +00:00
msaitoh
cb47392a23 - Make the initialize sequence close to the document.
- Fix ASF heartbeat sending bug (FreeBSD rev. 1.271 (r202821))
- Use new handshake command for BCM5750 or new controllers (FreeBSD rev. 1.272
  (r202822))
2010-02-03 15:36:36 +00:00
pooka
068898b44d Introduce the uhub_ubermatch variable. Setting it to 1 makes sure
than a uhub attaches even at higher priority than ugen when
ugen_override is set to 1.  This allows to probe the whole USB bus
and attach its functions with ugen.

A better infrastructure to control this would be nice ....
2010-02-02 23:18:49 +00:00
drochner
6d35fa3886 give up some silly macros which were only used ~once, and reduce
dependency on "locators.h"
makes the code more LKM frienly
2010-02-02 16:54:40 +00:00
drochner
1921d00aaf add hooks to allow terminal emulations to be installed by LKMs
(these are not available in early bootstrap, so this is not an
option for the system's default emulation)
2010-02-02 16:18:29 +00:00
wiz
2ec3e891ae Fix incomplete line (deleto?), found by cppcheck and reported by
Henning Petersen in PR 42719.
2010-02-02 14:58:46 +00:00
wiz
51c0c0ea31 Add missing parentheses, found by cppcheck and reported by
Henning Petersen in PR 42718.
2010-02-02 14:57:45 +00:00
hubertf
659e2ca273 Use uppercase for acronyms on output: DRAM, SRAM 2010-02-01 22:34:29 +00:00
njoly
7d3be93bb8 Do not print ac97 link rate message unless verbose boot is requested. 2010-02-01 12:51:16 +00:00
jruoho
4d0db25236 Fix incorrect notify handler type (ACPI_SYSTEM_NOTIFY -> ACPI_DEVICE_NOTIFY). 2010-02-01 09:45:04 +00:00
msaitoh
bb5dfe40ba Fix the bug that unaligned access occurs on amd64. It also fixes the bug
that error bits aren't cleard because these bits are W2C (in other word, W1C).

Reported by Michael van Elst.
2010-02-01 05:38:36 +00:00
martin
2a2c96609a Fix an outdated comment, noticed by Paul Goyette. 2010-01-31 22:53:56 +00:00
martin
889f82dd49 Add a convenience function to find the maximum value currently reported
by a set (selected via a passed callback predicate) of sensors.
This provides an easy way to query the current temperature of a thermal
zone, for example, from within the kernel - assuming the caller knows
the topology.
2010-01-31 21:36:38 +00:00
jruoho
b00d9a31ae Verify the object type before using variables from it.
In addition, use CTASSERT(9) instead of KASSERT(9).
2010-01-31 20:38:11 +00:00
jruoho
d9203cb513 Add a detachment routine. 2010-01-31 19:49:29 +00:00
jruoho
166db9da2a Also remove the ACPI notify handler upon detach. 2010-01-31 18:51:33 +00:00
dyoung
bcfb222fd8 Add the missing newline to a verbose autoconf message. 2010-01-31 18:12:51 +00:00
jruoho
2554187b97 Add a detachment routine. While here, clarify the initialization of sensors. 2010-01-31 17:53:31 +00:00
mlelstv
d2fd323d98 Properly register blocksize with disk(9) framework. 2010-01-31 15:40:08 +00:00
jruoho
4cd0ccf8ab Add dynamic debug options for ACPI_DEBUG kernels.
ok jmcneill@, pooka@, pgoyette@
2010-01-31 11:26:20 +00:00
jruoho
d9ca089d6e Simplify and clean:
* Semantics.
        * Remove ACPI_ACAD_DEBUG.
        * Reduce the amount of error reporting.
        * Remove the internal bookkeeping flags and variables;
          instead operate only with a single state variable.
        * Trust that the notify handler is doing its job;
          remove the refresh routine from the sensor.
        * Queue a status check upon resume; we want to know
          if the status has changed when in suspend (and it
          is unclear if a notify is sent to us).
2010-01-31 11:16:18 +00:00
jruoho
6c41d7d7a2 Add detachment routine. 2010-01-31 07:34:10 +00:00
jruoho
baf97f9356 Allocate the sensor structures dynamically. 2010-01-31 06:45:09 +00:00
jruoho
1aca5372db Add detachment routines. 2010-01-31 06:10:53 +00:00
pooka
fdca8d1743 print newline after timer expiry message 2010-01-31 02:54:56 +00:00
hubertf
af120bb199 Replace more printfs with aprint_normal / aprint_verbose
Makes "boot -z" go mostly silent for me.
2010-01-31 00:43:37 +00:00
pooka
f510198e1c Make swwdog use no-needs-count. As the manpage says, there can be only one. 2010-01-30 21:55:28 +00:00
jakllsch
43f0caffdd regen. 2010-01-30 20:50:19 +00:00
jakllsch
8216c57cdb Add Qumranet vendor and Virtio device IDs.
Also, sort some vendor entries.
2010-01-30 20:47:57 +00:00
jruoho
a86a868599 Add the _COMPONENT definition for ACPI_DEBUG. 2010-01-30 18:35:48 +00:00
jruoho
d569343003 Add the _COMPONENT definition for ACPI_DEBUG. 2010-01-30 18:07:06 +00:00
jakllsch
e1d2d1d9ed Sprinkle __KERNEL_RCSID() into siisata(4).
Slightly adjust some comment styling.
2010-01-30 16:16:35 +00:00
pgoyette
aaabf34dde Validate limit-based monitoring in one place, so we can apply the
constraints to both driver-requested and user-requested monitoring.

While here, clean up some of the debugging DPRINTFs.
2010-01-30 02:46:52 +00:00
macallan
565f3dd6cd avoid using PAGE_SIZE directly so sparc/GENERIC builds again 2010-01-29 23:50:01 +00:00
jruoho
b875c5c314 If we failed to obtain the brightness level during suspend, do not try to
restore it with a possible garbage value during resume.
2010-01-29 12:22:00 +00:00
jruoho
ab77a1af1f Replace all AcpiEvaluateObject() calls with acpi_eval_set_integer().
(As the return buffers are not used for anything, no need to make
unnecessary temporary allocations.)

Compile tested only.

ok jmcneill@
2010-01-29 11:57:37 +00:00
jruoho
545590ff33 Fix a memory leak in the resume handler. 2010-01-29 11:23:25 +00:00
drochner
25fb8de00b -rename the "KS_GROUP_Ascii" key symbol category to "Plain" because
this is what it meant all the time -- it includes characters >127
-delegate translation of all key symbols >127 to the terminal emulation
 layer -- formerly everything non-special was passed to the tty subsystem
 directly, involving truncation to a "char", which effectively meant
 some ISO-1 assumption
2010-01-28 22:36:19 +00:00
pooka
b89c02f1d2 Adjust some comments which were written when this was still a part of puffs. 2010-01-28 18:12:55 +00:00
msaitoh
a029a96bdd ANSI C, KNF and tabify 2010-01-28 07:34:12 +00:00
msaitoh
40e808f7b7 - Introduce IPMI and ASF related code from FreeBSD. It fixes some problems
which occured in netboot on sparc64 and PR#32767
- move the code of disabling host interrput in bge_stop() like linux tg3
  driver.
- fix the return value of bge_eeprom_getbyte().
- remove an unused structure.
- KNF
2010-01-28 03:09:13 +00:00
msaitoh
95c0acfe22 Add some register definitions. 2010-01-28 02:55:31 +00:00
drochner
30d27f4f07 the "Battery Present Rate" is only required to be valid if the battery
is discharging; it might make sense when charging, but it doesn't
make sense if neither is the case -- remove a wrong assertion and
arrange the code to make this obvious
(actually, the ACPI spec says that the requirement is only for
rechargeable batteries)
2010-01-27 22:17:28 +00:00
macallan
31d6295bdf round the space we bus_space_map() up to PAGE_SIZE alignment 2010-01-27 21:02:22 +00:00
macallan
5f203032ca tcx doesn't use bt_dac 2010-01-27 21:01:33 +00:00
pgoyette
af4bab2a6f Move the limits out of the event structure and into the main sensor.
Use the limits_flags only for calls to the {get,set}_limits() callbacks
and merge the results into upropset, rather than trying to maintain both
values (error prone).
2010-01-26 14:22:00 +00:00
mlelstv
ff9a9860d6 GPTs are defined in terms of physical blocks.
- Fix reading of GPT for devices with non-512byte sectors
- Fix bounds check to use DEV_BSIZE units.
2010-01-25 14:51:03 +00:00
martin
f6610e39b4 Back out part of my device property change: the mac-address part was already
done better in another place which I overlooked when merging local
changes.
2010-01-25 10:25:30 +00:00
jakllsch
0da2c5fc0b Add some more elements to struct ataparams.
These mostly concern the new Long Physical Sectors
and Long Logical Sectors feature sets.

Information from a draft of ACS-2, with some additional
in-between members and bits being borrowed from OpenBSD.

There's lots more in ACS-2 we could add, but for the most
part it would be superfluous.

XXX: Some elements marked as reserved no longer are,
and some elements we still reference are now obsolete.
2010-01-25 00:39:51 +00:00
martin
3f563da1bf Do not try to read the EEPROM if we already know we don't have one. 2010-01-24 23:27:39 +00:00
martin
808ceeabba Add support for device properties to override the mac address and set
the BGE_NO_EEPROM flag if we have an onboard device w/o SEEPROM.
2010-01-24 23:09:26 +00:00
msaitoh
fcf9d8f520 Fix a printf() message in debug code reported by Bert Kiers. 2010-01-24 17:56:54 +00:00
msaitoh
b7f2eb1a7e Add support for BCM5461,BCM5784 and BCM5761.
Enable brgphy_jumbo_settings().
Enable the Ethernet@Wirespeed function.
2010-01-24 16:26:09 +00:00
msaitoh
e12ed2e395 regen. 2010-01-24 16:23:16 +00:00
msaitoh
c1c40d3128 Add BCM5461,BCM5784 and BCM5761. 2010-01-24 16:22:40 +00:00
msaitoh
6d4f69ebbb Many changes from FreeBSD and OpenBSD:
- Add support for BCM5705F,BCM5714,SBCM5715S,BCM5717,BCM5718,BCM5720,BCM5723,
   BCM5724,BCM5751F,BCM5753F,BCM5756,BCM5761,BCM5761E,BCM5761S,BCM5761SE,
   BCM5764,BCM5781,BCM5784M,BCM5903M,BCM57760,BCM57761,BCM57765,BCM57780,
   BCM57781,BCM57785,BCM57788,BCM57790,BCM57791 and BCM57795. Fixes PR#41694.
 - Fix misunderstanding the capability for TSO4 on some chips.
 - Many other bugfixes.
 - Use proplib for no EEPROM systems (e.g. sparc64 with onboard bge).
 - Add debug function to show some flags.
2010-01-24 16:21:09 +00:00
msaitoh
e7e99141e3 regen. 2010-01-24 15:53:59 +00:00
msaitoh
7ca751745f Add BCM5717,5718,5723,5724,5787F,5761,5761E,5764,5761S,5761SE,5760,57788,
57780,57790,5784M,5785F,5785G,57761,57781,57791,57765,57785 and 57795.
2010-01-24 15:53:29 +00:00
msaitoh
39c974917d Fix the bug that both BGE_PCIE and BGE_PCIX are set on PCI-Express devices. 2010-01-24 15:29:10 +00:00
msaitoh
b95c5336e3 KNF & fix typo in comment.
No functional change.
2010-01-24 14:10:00 +00:00
mbalmer
26bb6ca79d Unfold, bump copyright. 2010-01-24 12:25:20 +00:00
jruoho
e6056a8df3 * Reintroduce a state variable. From njoly@.
* Always mark the charge state sensor as valid.
2010-01-24 11:32:13 +00:00
bouyer
59405fd732 struct buf::b_iodone is not called at splbio() any more.
Make sure non-MPsafe iodone callbacks raise the SPL as appropriate.
2010-01-23 18:54:53 +00:00
bouyer
5d530cfdab struct buf::b_iodone is not called at splbio() any more.
Make sure non-MPsafe iodone callbacks raise the SPL as appropriate.
Fix buffer corruption issue I noticed in dk(4), and probable similar
issues in vnd(4) and cgd(4).
2010-01-23 18:31:04 +00:00
cegger
3b84dd90dd essattach: printf -> aprint_* 2010-01-23 17:22:04 +00:00
jruoho
3f1f18b1bd Cleanup:
* Remove ACPI_BAT_DEBUG.
  * Reduce the amount of error reporting.
  * Remove the internal bookkeeping flags.
  * Remove the debugging functions used to print status and information
    changes. This information is fully conveyed in the output of envstat(8).
  * Always evaluate _STA. If it fails or the battery is not present, mark
    all remaining sensors as invalid. This will eliminate the convoluted
    update routine.
  * Semantics.

Over 200 LOC was eliminated, but functional change should again be minimal.

ok jmcneill@, pgoyette@
2010-01-23 15:06:47 +00:00
jruoho
2327840926 Correct the type also in the WMI write method. 2010-01-23 13:32:45 +00:00
jruoho
f55e7ab193 * Fix the type of the input buffer in the WMI method call.
* Do not error out if the flags field is is 0x00. Observed by cegger@.
2010-01-23 12:48:19 +00:00
martin
f11c121338 Remove sparc specific code, use device properties instead. 2010-01-22 16:12:41 +00:00
jdc
5fd95f0bc6 Remove port-specific code for determining MAC address, and use device
properties instead (c.f. gem(4) and hme(4)).
2010-01-22 14:34:34 +00:00
martin
f9e1815aaf Unify the name of the device property to hold a MAC address - there was
no clear majority for either "mac-addr" vs. "mac-address", but a quick
gallup poll among developers selected the latter.
2010-01-22 08:56:04 +00:00
hubertf
73699ad19c regen - thanks for the reminder @ veego 2010-01-22 08:01:49 +00:00
jakllsch
6b47b91e08 Correct an error in previous commit. 2010-01-22 01:22:00 +00:00
jakllsch
6f6dd47b49 Convert to C99 types. Make whitespace more consistent. 2010-01-21 23:26:58 +00:00
hubertf
3c3fb74cfa add/improve a few devices 2010-01-21 23:23:44 +00:00
macallan
f716aea43a get rid of architecture-specific firmware calls to determine the MAC address
on sparc(64) and macppc - use device properties instead
tested by myself on macppc and martin on sparc64
2010-01-21 17:40:09 +00:00
martin
cabe7be741 Remove sparc specific code, rely on device properties instead 2010-01-21 16:14:39 +00:00
martin
65cc18f336 fix a ref counting leak 2010-01-21 15:56:08 +00:00
jruoho
791571cbd1 In preparation for upcoming changes:
* Provide proper definitions and use these.
  * Clarify the evaluation of _STA.
  * Mark the state of a sensor according to the return value from _STA.
  * Share the basic object evaluation in _BIF and _BST.
  * Verify the object types before using the objects.
  * Be aware of bogus values from _BIF and _BST, as noted in the
    specification.

Despite of the list, functional change should be minimal. Ok pgoyette@.
2010-01-21 08:57:17 +00:00
msaitoh
8ececd13c6 Remove an extra debug printf(). KNF.
No functional change.
2010-01-21 08:52:20 +00:00
macallan
8953b23350 make RI_CENTER and RI_FULLCLEAR work with a shadow framebuffer 2010-01-21 05:32:18 +00:00
dyoung
17096c0d86 Cosmetic: join some lines. Get out early on errors, change
switch (...) {
                ...
                error = ...;
                break;
        }
        return error;

to

        switch (...) {
                ...
                return ...;
        }
2010-01-21 02:53:51 +00:00
dyoung
4cb8eac3b5 All that the activation hook radioactivate() did was to change
sc_dying, and nothing in the driver examines sc_dying, so get rid of
radioactivate() and sc_dying.
2010-01-21 02:19:55 +00:00
dyoung
975667d3ea Take care not to dereference a NULL softc. 2010-01-21 02:14:42 +00:00
martin
6d8f3b9e7c Remove sparc specific code and HME_USE_LOCAL_MAC_ADDRESS hack, instead
use the "mac-address" device property if present.
2010-01-20 22:58:37 +00:00
dyoung
146411a622 Cosmetic: get out of cgdioctl() early. Instead of
int ret;

        switch (...) {
        case ...:
                ret = ...;
                break;
        }
        return ret;

write:

        switch (...) {
        case ...:
                return ...;
        }
2010-01-20 19:00:47 +00:00
dyoung
c95d6a20b9 Get out of cgd_detach() early on error. Do not call disk_destroy(9)
on error, that leaves the cgd_softc in an inconsistent state.

Fixes a crash during shutdown reported by Patrick Welche.  Thanks
to Patrick for reporting and for testing the fix.
2010-01-20 18:55:17 +00:00
tonnerre
9956b4e182 Signedness bug/crash in azalia and hdaudio. Fixes PR 42604.
By Pierre Pronchery.
2010-01-20 09:05:12 +00:00
pooka
654415b2b7 Get rid of last "easy" kernel symbols starting with __:
__assert -> kern_assert
__sigtimedwait1 -> sigtimedwait1
__wdstart -> wdstart1

The rest are MD and/or shared with userspace, so they will require
a little more involvement than what is available for this quick
"ride the 5.99.24 bump" action.
2010-01-19 22:28:30 +00:00
pooka
10fe49d72c Redefine bpf linkage through an always present op vector, i.e.
#if NBPFILTER is no longer required in the client.  This change
doesn't yet add support for loading bpf as a module, since drivers
can register before bpf is attached.  However, callers of bpf can
now be modularized.

Dynamically loadable bpf could probably be done fairly easily with
coordination from the stub driver and the real driver by registering
attachments in the stub before the real driver is loaded and doing
a handoff.  ... and I'm not going to ponder the depths of unload
here.

Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
2010-01-19 22:06:18 +00:00
bouyer
3ccd2d9884 bio(4) is MP-safe but mfi(4) is not. So get the kernel_lock at
mfi_ioctl() entry and release it on exit.
2010-01-19 20:54:32 +00:00
pooka
58247e10a2 hp@isa was marked non-compiling and broken 14 years ago. I'm sure
the tens of well-tested changes since then have been necessary,
but now i'll just spoil the fun for everyone by sending the driver
to the attic.
2010-01-19 12:41:41 +00:00
mbalmer
73f895a875 Add the IBM 481033H SCC 2010-01-19 12:11:21 +00:00
mbalmer
0592b54dfc regenerate 2010-01-19 12:00:51 +00:00
mbalmer
ee9ebce313 Add two IBM RSS devices. 2010-01-19 11:43:33 +00:00
dyoung
c217bc3b1d If the device does not exist, return ENXIO, as is customary, instead of
ENODEV.  Ok jmcneill@.
2010-01-18 23:57:14 +00:00
pgoyette
299ee01345 If no limits are exceeded, make sure we set state to SVALID 2010-01-18 21:48:15 +00:00
martin
9e839480f0 Add two CTI rs485 dongles 2010-01-18 20:57:13 +00:00
martin
86b7d7433b regen 2010-01-18 20:55:37 +00:00
martin
f0b282446a Add two CTI usb-rs485 adapters 2010-01-18 20:54:22 +00:00
pooka
63ee3d24ed Remove unused macro definition (the NetBSD version would just not go
through a compiler).
2010-01-18 20:45:12 +00:00
pooka
d305920d2d nuke unused bpf inclusions 2010-01-18 19:00:58 +00:00
pooka
8052f8db95 Remove conditional inclusion of unused bpf.h 2010-01-18 18:52:35 +00:00
jruoho
f4cdb6678e Fix and improve several comments. 2010-01-18 18:49:27 +00:00