Commit Graph

25652 Commits

Author SHA1 Message Date
dyoung
1b6947b941 Do a complete device_t/softc split for the PCI attachment. I have
not finished the device_t/softc split for the SBus attachment
because I don't have an SBus gem(4) to test with.

Convert from legacy shutdownhooks to a PMF shutdown hook.  Add PMF
suspend/resume handlers.

Factor a detachment hook out of gem_attach().  During device
attachment, track which resources are reserved in sc_attach_state,
and release only those resources during detachment.

Tested on gem0 and gem1 at pci1 on a Sun Fire V120.
2009-07-27 18:10:53 +00:00
mbalmer
9d8b69b23a Do not attach gpiosim(4) at root, but make it a pseudo device.
With help from Matthias Drochner, thanks!
2009-07-27 17:40:57 +00:00
kiyohara
d9973100d4 Support Marvell Hercules-I/II SATA Controllers. 2009-07-27 15:09:58 +00:00
sketch
1d9fe50b80 Wrap ehcidebug in EHCI_DEBUG, not USB_DEBUG. 2009-07-27 14:41:19 +00:00
kiyohara
ce1343fcd9 Support Marvell Hercules-I/II SATA Controllers. 2009-07-27 12:34:12 +00:00
reinoud
5e6bd1d549 Significantly bump time for SCSI track/disc closure. DVD-RW when used
sequentially can significantly take more time.
2009-07-26 15:29:00 +00:00
mbalmer
bf5ef89e58 Fold long line, add comment to fix possible creation of duplicates. 2009-07-26 14:06:05 +00:00
mbalmer
9e8bcf597e Simplify the use _a lot_ by hooking this to sysctl instead of bio(4).
When it attaches, it creates a hw.gpiosimN.value sysctl node which can
then be used to manipulate the simulated device state.
2009-07-26 13:45:20 +00:00
cegger
ae3b7e2af6 use __arraycount, kill N() macro. 2009-07-25 23:43:06 +00:00
cegger
97eb6082f5 use device_xname 2009-07-25 19:18:01 +00:00
cegger
585d03dbd7 make this build w/ GPIO_DEBUG 2009-07-25 19:01:55 +00:00
mbalmer
4e71b44621 Change one more struct device * to device_t, noticed by cegger. 2009-07-25 16:41:58 +00:00
mbalmer
3270b18844 Use device_t instead of struct device * per cegger's request. 2009-07-25 16:30:44 +00:00
cegger
22b735eb9f - replace magic number with proper define from mii.h. From OpenBSD.
- fix typo in comment. From OpenBSD.
2009-07-25 16:25:13 +00:00
mbalmer
8964d40bc5 Rework the GPIO framework. Tie it to the kauth(9) framework to control
access to the GPIO pins.  Device drivers using GPIO pins can now be
attached and detached at runtime.  GPIO pins can be named for easier
reference from userland programs.  Introduce a new gpiosim(4) driver,
which is used for development.

Reviewed by many.
2009-07-25 16:17:10 +00:00
msaitoh
df316185c6 Call prop_dictionary_set_uint32() before mii_attach(), so that brgphy
can do prop_dictionary_get_uint32() correctly.
2009-07-25 13:52:47 +00:00
skrll
7a56aed863 spaces to tab. 2009-07-24 06:58:24 +00:00
skrll
eaffbb9ed5 Remove trailing whitespace 2009-07-24 06:54:10 +00:00
skrll
aa9f2831e1 Wrap some long lines.
Whitespace.
2009-07-24 06:50:40 +00:00
dyoung
60e16c204c Move the RAID shutdown to the raid(4) detachment routine, and use
config_detach(9) to shutdown a RAID.

Detach raid(4) units at shutdown.

Ok by oster@.
2009-07-23 21:58:06 +00:00
dyoung
90dc63ec14 Extract ldlastclose() and use it in ldclose(). At the top of
ldbegindetach(), call disk_begindetach(..., ldlastclose, ...).

Compiles.  Not tested.
2009-07-23 21:38:33 +00:00
dyoung
487ea78a9c Use kpause(9), cv_timedwait(9), and cv_signal(9) instead of tsleep(9)
and wakeup(9).

Use mstohz(9).

XXX Protection against spurious wakeups is still needed, but this patch
XXX makes the code no worse than before in this regard.
2009-07-23 21:22:25 +00:00
macallan
680ff5c320 quick hack to allow brightness control via PMF 2009-07-23 07:21:45 +00:00
msaitoh
256f34e7cc Reduce the difference against FreeBSD and OpenBSD
Define BGE_IS_JUMBO_CAPABLE and use it. No functional change.

  Cleanup the code for BGE_PCI_DMA_RW_CTL regster setting. No functional
  change.

  Fix a printf message.
2009-07-23 05:05:13 +00:00
dyoung
5a4d67314b Extract a lot of code from dkwedge_del(), and move it to dkwedge_detach()
to create a comprehensive detachment hook.  Let that hook run at
shutdown.  Now, 'drvctl -d dk0' actually deletes a wedge if it is
not in-use (otherwise fails w/ EBUSY), and wedges are gracefully
detached from their "parent" at shutdown.
2009-07-21 19:41:00 +00:00
kiyohara
1f46950ef0 Support siisata@cardbus.
It tested on amd64 and i386 only.
2009-07-19 06:28:08 +00:00
jakllsch
18f1b5273b Ignore scancodes E0 2A, E0 AA, E0 36, E0 B6 when decoding.
For the 10 keys on the editing keypad, these prefix/postfix
scancodes indicate the state of the Left Shift and Right Shift
keys and Num Lock indicator.

This change prevents a spurious WSCONS_EVENT_KEY_UP event upon
press as well as the corresponding WSCONS_EVENT_KEY_DOWN event
upon release.
2009-07-16 20:44:54 +00:00
jakllsch
4bdc2d7f77 Correctly bus_dmamap_sync() the transmit descriptors.
Previously the sync could run off the end and not sync
the beginning of the ring.  Logic gleaned from if_nfe.
2009-07-16 20:14:17 +00:00
dyoung
bbc238f2cd Let us detach & re-attach children of mfi0. Detach mfi0 at shutdown.
Detachment may fail after freeing some but not all resources, so
take care not to re-release any resource during detachment.

Tested on a Dell PowerEdge 1950.
2009-07-16 18:58:38 +00:00
dyoung
ebab3c38ca device_t/softc split. Tested and shown to work on a Dell PowerEdge
1950.
2009-07-16 18:10:00 +00:00
dyoung
c85f1bbee5 Try to detach ancestors (sd0 at scsibus0, scsibus0 at mfi0), first,
to avoid dangling references to envsys(4) sensors and such if
detaching the ancestors should fail.
2009-07-16 01:30:10 +00:00
dyoung
78500bdfd5 Add a rudimentary detachment hook for mfi(4). 2009-07-16 01:01:46 +00:00
macallan
e06eca8326 nuke PCI_ALLOW_MMAP, instead allow mmap(/dev/pci*) with options INSECURE
now the x86 camp should be happy again
2009-07-14 19:54:40 +00:00
msaitoh
37cdac2fa8 Some fixes for i80003 and ICH{8,9,10} from e1000 driver and document:
Add setting for KABGTXD register for ICH{8,9,10}.

    ICH9 and ICH10 has no FCAL, FCAH and FCT like ICH8.

    Add special setting for FCTTV and TCTL_EXT register for i80003

    The special setting for TIPG is only for i80003.

    Some of kumeran settings are only for i80003's bugs.

    Add some ICH10 fixes.
2009-07-14 00:00:44 +00:00
msaitoh
234fc6cd53 Check PCI-X mode as e1000 driver. 2009-07-13 23:31:19 +00:00
kiyohara
f68c771081 com@acpi supports memory space.
It tested on HP zx6000(ia64).
2009-07-13 12:57:04 +00:00
kiyohara
e14284f196 ACPI resource supports Extended IRQ From FreeBSD. 2009-07-13 12:55:21 +00:00
kiyohara
e2c231dbe4 Support UCB1400.
It tested on GUMSTIX with audiostix.  However GUMSTIX needs more ad-hoc patch.
2009-07-13 12:54:11 +00:00
jakllsch
edeb84e77a Fix WSKBD_RAW mode ukbd -> pckbd translation for Pause/Break and
Print Screen/Sys Req keys so xf86-input-keyboard can figure out
what we want.

Additionally, fix dead URL, and add a note that this emulation
is not completely identical to a real pckbd.
2009-07-11 18:26:58 +00:00
pgoyette
e0b6ea852c Correct usage of PROP_DRIVER_LIMITS flag 2009-07-10 15:30:45 +00:00
pgoyette
d36ea2afc5 Document usage of PROP_DRIVER_LIMITS flag and set it correctly.
Use flag bits to determine validity of limit values, rather than
assuming that invalid/not-present values are set to zero.
2009-07-10 15:27:33 +00:00
pgoyette
0fab9769e4 Remove some code (bracketed by #ifdef NOTYET / #endif) that should not
have been committed in the first place.
2009-07-10 13:09:09 +00:00
macallan
ec8b80662c enable mmap() support for /dev/pci* with options PCI_ALLOW_MMAP 2009-07-09 19:22:21 +00:00
pgoyette
e17701cfef Remove driver name from debug message. Not all drivers have set this
early enough, and we can easily figure out the driver name from some
subsequent debug messages.
2009-07-08 17:54:27 +00:00
pgoyette
c7ba8d5428 Initialize lims.sel_flags before using it. Prevents spurious limit
events being created for devices that don't provide internal limits.

Thanks to Mattias for finding this.
2009-07-08 17:28:53 +00:00
pgoyette
e65558aef1 Clean up a couple of debug statements that got missed previously. 2009-07-08 13:34:11 +00:00
njoly
b3f068f354 Fix amd64 build with VIDEO_DEBUG. 2009-07-07 21:55:17 +00:00
dyoung
c88ea823f8 At the bottom of vndclear(), clear VNF_CLEARING: it is no longer
needed to exclude vndopen(), and it will prevent subsequent opens
if we leave it.
2009-07-07 19:51:22 +00:00
christos
e09097a0e7 simplify previous. 2009-07-07 17:08:19 +00:00
cegger
484dd68fe4 regen. 2009-07-07 09:46:25 +00:00
cegger
a240b4e5e6 correct product ids for RD890 chipset 2009-07-07 09:45:45 +00:00
joerg
ac7c4cf146 Ignore breakpoints in the DSDT even if DDB is present.
A new option ACPI_BREAKPOINT reenables them.
2009-07-06 12:36:31 +00:00
alc
3fb1b3bc21 Add a pmf(9) shutdown hook to acpiec(4) to use polling on shutdown.
This fixes DIAGNOSTIC's assertion failure:

cpu_switchto(): switching above IPL_SCHED

during ACPI shutdown.

OK'd by joerg@
2009-07-06 00:54:00 +00:00
cegger
598e09136a pciioctl(), pci_devioctl():
simplify implementations of PCI_IOC_BDF_CFGREAD, PCI_IOC_BDF_CFGWRITE,
PCI_IOC_CFGREAD, PCI_IOC_CFGWRITE
No functional changes.
2009-07-04 21:20:56 +00:00
cegger
9b1a101d50 remove useless parenthesis 2009-07-04 21:01:10 +00:00
jakllsch
5b75384146 Further corrections for siisata.
Reset ch_status and ch_error at the beginning of any operation.

The chip only writes the RDH FIS to the SRAM when the error bit is
set in a RDH FIS (per the datasheet).  Thus, satafis_sdb_parse() is
replaced with satafis_rhd_parse().  A valid FIS type field seems to
not be written to the SRAM, so don't bother checking it for the
correct magic.

Additionally, append 2009 to copyright year set, and remove
obsolete CVS Id lines from when this was in my repository.
2009-07-04 20:57:15 +00:00
jakllsch
464a6f95bf Remove unused elements from siisata_softc.
Clean up siisata pci attachment.
 noteable changes:
 - Use aprint_*_dev where appropriate.
 - Condense board match table and use C99 initializers.
 - Use aprint_verbose for extra info.

Also, add 2009 to my copyright, as well as remove my local CVS tags.
2009-07-04 20:36:57 +00:00
pgoyette
de4ed96bf9 Use a macro to define the conversion between ACPI temperatures and those
used by sysmon_envsys(4).

No functional change.
2009-07-04 13:36:49 +00:00
pgoyette
caff4fea85 Remove an unused mutex. This was left-over from two years ago when
driver was updated to sysmon_envsys V2;  a simple_lock was turned into
a mutex.  But the only code that ever used the simple_lock was removed
so the mutex can also be removed.

Noticed by njoly@
2009-07-03 21:18:40 +00:00
pgoyette
2d29649a47 Properly convert ACPI zone values to uKelvins.
Patch from njoly@
2009-07-03 15:34:10 +00:00
dyoung
ec3ba2c85b In vndopen(), release the lock before returning ENXIO. 2009-07-02 02:06:11 +00:00
dyoung
7242213311 Extract subroutine dklastclose(). This is a step toward detachable
dk(4).
2009-07-02 00:56:48 +00:00
pgoyette
5de2729099 Change acpi_tz sensor behavior as follows:
1. ENVSYS_WARNOVER event is generated whenever any active cooling level
   is exceeded.

2. ENVSYS_CRITOVER event is generated whenever _HOT limit is exceeded;
   if the _HOT limit is not defined, then ENVSYS_CRITOVER will be
   generated when the _CRT limit is exceeded.

3. For Passive Cooling Only mode, there will be no change in behavior.

Additionally, since there are specific actions taken at each of the Active
Cooling Levels (powering parts of a zone on or off), and the limits are not
user-programmable,

4. The {warn,crit}{min,max} threshold levels will be specified only
   by the device itself;  event reporting thresholds may not be set
   from userland.

No comments received for two weeks after proposing these changes on both
current-users@ and tech-kern@
2009-06-30 16:14:49 +00:00
hubertf
9bb62260eb Use PCI IDs from pcidevs, instead of storing them in here.
Compile tested and OK'd by NONAKA Kimihiro.
2009-06-29 11:05:12 +00:00
hubertf
ea499356a8 regen 2009-06-29 11:04:05 +00:00
hubertf
51bb588c5a add a few sdhc(4) devices 2009-06-29 11:02:43 +00:00
dholland
effcf1af5c Convert 67 namei call sites to use namei_simple, in these functions:
check_console, veriexecclose, veriexec_delete, veriexec_file_add,
emul_find_root, coff_load_shlib (sh3 version), coff_load_shlib,
compat_20_sys_statfs, compat_20_netbsd32_statfs,
ELFNAME2(netbsd32,probe_noteless), darwin_sys_statfs,
ibcs2_sys_statfs, ibcs2_sys_statvfs, linux_sys_uselib,
osf1_sys_statfs, sunos_sys_statfs, sunos32_sys_statfs,
ultrix_sys_statfs, do_sys_mount, fss_create_files (3 of 4),
adosfs_mount, cd9660_mount, coda_ioctl, coda_mount, ext2fs_mount,
ffs_mount, filecore_mount, hfs_mount, lfs_mount, msdosfs_mount,
ntfs_mount, sysvbfs_mount, udf_mount, union_mount, sys_chflags,
sys_lchflags, sys_chmod, sys_lchmod, sys_chown, sys_lchown,
sys___posix_chown, sys___posix_lchown, sys_link, do_sys_pstatvfs,
sys_quotactl, sys_revoke, sys_truncate, do_sys_utimes, sys_extattrctl,
sys_extattr_set_file, sys_extattr_set_link, sys_extattr_get_file,
sys_extattr_get_link, sys_extattr_delete_file,
sys_extattr_delete_link, sys_extattr_list_file, sys_extattr_list_link,
sys_setxattr, sys_lsetxattr, sys_getxattr, sys_lgetxattr,
sys_listxattr, sys_llistxattr, sys_removexattr, sys_lremovexattr

All have been scrutinized (several times, in fact) and compile-tested,
but not all have been explicitly tested in action.

XXX: While I haven't (intentionally) changed the use or nonuse of
XXX: TRYEMULROOT in any of these places, I'm not convinced all the
XXX: uses are correct; an audit might be desirable.
2009-06-29 05:08:15 +00:00
haad
a1f246d056 Remove unneeded targets from build. Should fix brekage of ALL kernel build
found by cegger@.
2009-06-28 22:05:07 +00:00
hubertf
d0ffc7ee11 Remove trailing whitespace,
from KIYOHARA Takashi on current-users@
2009-06-28 11:17:39 +00:00
mbalmer
5c2d18cdea regen. 2009-06-28 10:46:37 +00:00
mbalmer
81170a7797 Add some vendor/product IDs for radio clocks. 2009-06-28 10:45:24 +00:00
jakllsch
185aeef2dc Correct various siisata bugs, some old, some new.
- Move clearing of interrupts to before atastart() is called in the
   xfer interrupt handler.  Should fix kern/41579.
 - Using cv_timedwait(9) is not possible in code that can be called from
   interrupt context, fall back to DELAY(9).
 - Correctly poll Port Slot Status register for soft reset PRBs.
 - Only use the Recive Transfer Count register on reads, when it is valid.
 - Activate PRBs in a way that takes the whole physical address into account,
   even when the PRB is beyond 4GiB.
 - consistently use DELAY(9)
 - Use DELAY() constants in completion polling loops that are consistent with
   the loop count limit. (i.e. timeout in 10 rather than 100 seconds)
2009-06-27 21:04:47 +00:00
jakllsch
f6c1b3e09a Some fixes for dm(4).
- Limit accesses to the size of the volume.
   This fixes a KASSERT in physio_biodone().
 - Change dm_table_size() to return the size of the volume in
   DEV_BSIZE units.  It was reporting it in DEV_BSIZE^2 units.
 - Remove a bit of trailing whitespace.

ok haad
2009-06-27 16:10:25 +00:00
dyoung
7145e9fc73 A lot of good it does, but let this build with 'no options INET'. 2009-06-26 00:24:18 +00:00
dyoung
72ca52eed5 Use &zn->ni instead of (struct ieee80211_node *)zn because it is
concise and safe.
2009-06-26 00:15:23 +00:00
dyoung
c3a668892b Compilable, untested fix to zyd(4) lossage reported by Matthias-Christian
Ott: every ioctl but SIOCSIFFLAGS fails with ENXIO (Device not
configured).  Let ioctls complete even if initialization is not
complete (!sc->attached).  Do exit immediately from zyd_newstate
with ENXIO if !sc->attached, however:  zyd_newstate tries to call
some USB routines for which it is probably not ready.
2009-06-26 00:14:09 +00:00
dyoung
ed0e4d4d36 Expand more macros from usb_port.h. 2009-06-26 00:06:27 +00:00
dyoung
c97ab81b59 Expand several definitions from usb_port.h. 2009-06-26 00:01:25 +00:00
mjacob
ad7d727f78 Update ISP driver to latest and greatest. Includes support for the 8Gb part. 2009-06-25 23:44:01 +00:00
mjacob
e9c28376ea Update 2400 firmware to latest (to match 2500 firmware) 2009-06-25 23:42:40 +00:00
mrg
f8e80dd3fa remove the old drm sources. 2009-06-21 20:15:47 +00:00
mrg
c7c2933c33 make external drm the default. 2009-06-21 20:15:26 +00:00
jakllsch
5a08fb2589 Use PRO_PS and PRO_PCS correctly.
From Wolfgang Stukenbrock as part of kern/41579.

While here, remove a line of whitespace, and add an else case to
the ATAPI command length toggle.
2009-06-21 14:15:38 +00:00
jakllsch
23eef70a5f Move call of sd_set_properties() to end of sd_get_parms(), rather than
sdattach().  This allows DIOCGDISKINFO to do the right thing even when
the media has changed.  Note that drvctl -p will only DTRT if disk has
been opened since the most recent media chenged.
2009-06-21 14:06:49 +00:00
dyoung
59d9a6b60c unifdef -U__DragonFlyBSD__ -U__FreeBSD__ -D__NetBSD__.
XXX Compiles, but untested.
2009-06-20 20:18:32 +00:00
cegger
f978dd86b2 buidfix: change dm_target_snapshot_orig_init() to match prototype. 2009-06-20 09:57:26 +00:00
cegger
ffb0a63a57 buildfix: don't redefine MIN and MAX. They are defined in <sys/param.h>. 2009-06-20 09:40:52 +00:00
mrg
8df00d72b3 add r600_cp.c. 2009-06-19 03:53:24 +00:00
mrg
bf40ad8b96 port the MOSCHIP MCS7703 driver from openbsd, based on changes between
openbsd uvscom and netbsd uvscom as a guide.

XXX: it only attaches one of the two ucom's on this device currently.

XXX: needs moscom.4.
2009-06-19 01:16:23 +00:00
mrg
a0e195499c regenerate for new MOSCHIP devices. 2009-06-19 01:15:02 +00:00
mrg
aa276e62a5 add a couple of MOSCHIP usb serial devices. 2009-06-19 01:14:27 +00:00
rjs
805ebb2dbd Regen. 2009-06-18 11:33:31 +00:00
rjs
6f27b61c89 Add Marvell 88E1116R PHY. 2009-06-18 11:32:29 +00:00
rjs
4cd376c68b Make it compile. Change a commented out printf() to aprint_error_dev(). 2009-06-18 08:40:26 +00:00
cegger
77578bbc3a make this build w/o SIISATA_DEBUG 2009-06-17 19:12:48 +00:00
tsutsui
a36955c23e Unwrap not so long lines. 2009-06-17 15:43:16 +00:00
tsutsui
a86f73dc93 - no need to use device_parent() because device_t parent is passed
via config_attach(9)
- use device_is_a() rather than strcmp() for readability
2009-06-17 15:42:00 +00:00
jakllsch
f38e8286ac A few changes for siisata(4):
- Support detachment.  From KIYOHARA Takashi.
 - Add PCI detachment functionality (albeit not very interesting when
   the bus can not yet be rescanned).
 - Rework interrupt handlers to reduce near-duplicate code.
   Borrowed from ahcisata(4).
 - Attempt to make polled I/O work. Untested.
 - Fix formatting of some messages.
 - For always-polled commands, disable interrupt
   at slot level rather than port level.
 - Instead of busy-waiting indefinitely for completion of some commands
   move on after 31 seconds. Use cv_timedwait(9) instead of DELAY(9).
 - Use abstracted SATA FIS code.
 - Enable use of disks that don't respond with the standard signature.
2009-06-17 04:37:57 +00:00
jakllsch
5ea7c61bc2 Use abstracted FIS code for ahcisata(4). Have the FIS code pre-zero the FIS. 2009-06-17 03:55:04 +00:00
jakllsch
e5e3060059 ahcisata(4) and siisata(4) use similar SATA FIS functions, share them. 2009-06-17 03:07:51 +00:00
dyoung
7fdb86195d Use device_t instead of device_ptr_t. Stop using USB_MATCH() and
USB_ATTACH().
2009-06-16 19:42:44 +00:00
cegger
7ed6826c06 Apply hw workaround required for all SB600 revisions and SB700 revisions
A12 and A13 to avoid USB subsystem hang symptom. The USB subsystem hang
symptom is observed when the system has multiple USB devices connected to it
or one USB device is often re-connected. In some cases a USB hub may be
required to observe this symptom.

This patch works around the problem by correcting the internal register setting
that will help by changing the behavior of the internal logic to avoid the
USB subsystem hang issue. The change in the behavior of the logic does not
impact the normal operation of the USB subsystem.

This fix has been discussed, developped, reviewed, polished up
and tested on current-users by several people. Thread starts at:
http://mail-index.netbsd.org/current-users/2009/05/17/msg009460.html
2009-06-15 09:18:45 +00:00
pgoyette
c1af07659e Update {get,set}_limits() routines. 2009-06-14 19:44:46 +00:00
pgoyette
45f4717820 Ooops - {get,set}_limits() need to be sensor-specific. Pass an extra
argument to them to identify the individual sensor being processed.
2009-06-14 19:43:12 +00:00
cegger
051c4248a9 use __arraycount 2009-06-14 06:24:14 +00:00
pgoyette
3441b533fb No need to set flag=I2C_F_POLL when releasing the bus. Pointed out
in private Email from njoly@
2009-06-13 20:27:19 +00:00
tonnerre
8faae88204 Add support for Swiss german kezboard to wskbd.
Contributed by Marc Balmer.
2009-06-13 20:21:56 +00:00
pgoyette
5fb0a3a4d7 Update sdtemp driver to use sysmon_envsys(9) for setting temp sensor
limits.  Remove sysctl(9) interface to the limit registers since it's
no longer needed.
2009-06-13 19:02:33 +00:00
pgoyette
c235777756 Add capability to send sensor limit values to the driver so they can
be programmed into device registers.  This way we can let the hardware
help us out instead of having to always compare the value against each
limit.  (Driver updates for some sensors to take advantage of this
capability will be forthcoming.)
2009-06-13 16:08:25 +00:00
rjs
dc974f0b47 Regen. 2009-06-12 23:05:34 +00:00
rjs
416c60b3b1 Add some more Marvell devices. 2009-06-12 23:00:24 +00:00
cegger
acf99ccda1 use __arraycount(). Same object code generated. 2009-06-12 08:33:41 +00:00
cegger
eb7545174c regen. 2009-06-11 12:43:13 +00:00
cegger
db97db6aee add ADP2, Marvell and Triones devices.
Taken from mvsata diff from Kiyohara Takashi, resolved apply conflicts.
2009-06-11 12:42:31 +00:00
cegger
535480ccf0 Attach Marvel 88SE6121 SATA II controller on ahci.
W/o this, it attaches on pciide.
2009-06-11 11:02:11 +00:00
pooka
1e115afaf0 Attempt bailout if config_attach_pseudo() fails. Otherwise, a few
moments later, we'll take a fatal plunge because sc_dev is null.
2009-06-10 14:17:13 +00:00
tsutsui
95b2850b42 Split device_t/softc.
Tested on:
emuxki0 at pci2 dev 7 function 0: Creative Labs SBLive! EMU 10000
(audio multimedia, revision 0x05)
2009-06-09 11:01:18 +00:00
jakllsch
5aaada1bec Add atap_max_lba member to ataparams for LBA48 Maximum Address. From OpenBSD.
While here, renumber some __reserved member names to be sequential.
Also, add a member for the World Wide Name.

Use atap_max_lba in wd.c instead of offsets into a __reserved member.
2009-06-08 15:09:35 +00:00
pgoyette
260b6fd907 Correct typo in last so we can #undef the correct macro. 2009-06-08 13:06:33 +00:00
pgoyette
f7ad703892 General clean-up and some restructuring of event handling. This is a
precursor to letting sensor drivers actually exchange limits/thresholds
with user-land.
2009-06-08 00:55:35 +00:00
cegger
a4c2d5ee50 typo in comment: autconfiguration -> autoconfiguration 2009-06-06 12:56:43 +00:00
haad
ea2ba1c77b Fix my previous commit. 2009-06-06 08:10:06 +00:00
haad
f5b48500f1 Add support for DIOCGDISKINFO to disk like device drivers. Change
partutil.c::getdiskinfo to use it to get disk geometry info.
Use DIOCGWEDGEINFO ioctl to get information about partition size, if disk
driver doesn't support it use old DIOCGDINFO. This patch adds support for
wedge like devices(lvm logical volumes, ZFS zvol partitions) to newfs and
other tools.

No objections on tech-userlevel@.
2009-06-05 21:52:31 +00:00
haad
62e994ce96 Parse dm param string in libdevmapper and not in a dm target init function.
Create proplib param dictionary entry in libdevmapper and pass it to dm in
dm_ioctl dict.
Param target is then passed to target init function, where is parse. I like
this aproach much better than passing char **argv and trusting to user input.

I have bumped minor lib/driver version.

XXX. Add more sanity checks in kernel.
2009-06-05 19:56:40 +00:00
haad
7147ed320b Add work in support for compiling ccd and cgd drivers as a modules. I forgot
to committ when I have written device module autoloading stuff.
2009-06-05 19:21:02 +00:00
hubertf
1aba70bb8a From the specs: address 0xff gives the die revision 2009-06-05 12:42:43 +00:00
pgoyette
7c25ce0d52 Explicitly set sensor's units to ENVSYS_STEMP rather than having
it work only because ENVSYS_STEMP is #defined to 0
2009-06-03 22:34:18 +00:00
macallan
f48726983f make this compile again without tctrl 2009-06-03 16:25:22 +00:00
pgoyette
677e91afbc Don't allocate the private list-threading structure unless we're going
to use it.  Otherwise we end up leaking little bits of memory for each
sensor that is not monitored at time of initial registration.
2009-06-03 11:43:15 +00:00
pgoyette
5a84f3060e Since we no longer have individual events for each sensor value limit,
we don't need individual flag bits.  Clean up extra bit definitions.
Bump kernel version - welcome to 5.99.13
2009-06-01 20:08:44 +00:00
he
6425d6dcfd Don't include <machine/mtpr.h> anymore since it has been removed
(at least from the amiga port) and appears to no longer be required.
2009-05-31 14:11:17 +00:00
tsutsui
a6363f7d5a Two fixes for RX hwcsum on DESCV2 chips:
* On checking TCPv4/UDPv4 RX checksum on DESCV2 chips, also check
   RE_RDESC_VLANCTL_IPV4 bit because those DESCV2 chips may also recognize
   IPv6 packets and set RE_PROTOID_TCPIP or RE_PROTOID_UDPIP bits for
   TCPv6/UDPv6 packets.  This may fix PR kern/40605.
 * According to Realtek's Linux driver, DESCV2 chips don't set RE_PROTOID_IP
   for non-TCP/UDP IP packets (set only RE_RDESC_VLANCTL_IPV[46]) so
   remove PROTOID check for IPv4 RX cheksum on DESCV2 chips.
2009-05-31 05:10:47 +00:00
nonaka
84b5216c59 It is avoided that the error occurs when the card attaches it,
when wedge is supported.
2009-05-29 22:27:40 +00:00
rjs
850a493aca Pass correct argument to q_to_b(). 2009-05-29 20:10:39 +00:00
plunky
78fb2cc482 add missing NetBSD RCS ID tags 2009-05-29 18:49:21 +00:00
skrll
d73b19cf48 Regen. 2009-05-29 06:13:56 +00:00
skrll
2026f95019 Add a bunch of HP stuff. From OpenBSD. 2009-05-29 06:12:31 +00:00
darran
7dadeaa0c7 Add vlan support and hardware offload capabilities to agr.
These changes allow vlans to be layered above agr, with the attach
and detach propogated to the member ports in the aggregation.
Note the agr interface must be up before the vlan is attached.

Adds SIOCINITIFADDR support to the wm driver for setting the AF_LINK
address, necessary for agr to be able to set the mac addresses of each
port to the agr address (i.e. so it can receive all intended traffic
at the hardware level).

Adds support for disabling the LACP protocol by setting LINK1 on the agr
interface (e.g. ifconfig agr0 link1).

In consultation with tls@.
2009-05-29 04:57:04 +00:00
rjs
f4443cd34c Put back CVS header. 2009-05-27 23:01:07 +00:00
macallan
b538f79eb0 use pmf, while there do some cleanup, fix typos etc. 2009-05-27 15:13:22 +00:00
macallan
5052b0a047 finally commit a lot of stuff that's been sitting in my source tree for
several ages:
- convert to device_t
- add support for programming colour depth and such, use it to reset the
  console to something usable when we enter ddb or exit X etc.
- basic power management
TODO:
- convert to PMF
- get rid of rconsole code so we don't need to map the framebuffer
- power down the whole DAC when not in use
2009-05-27 00:35:34 +00:00
macallan
991219d617 add a bunch of register definitions 2009-05-27 00:32:10 +00:00
dyoung
588bd8a952 Wrap some long lines. No functional change intended. 2009-05-26 23:57:34 +00:00
macallan
0483b5b9d9 use BUS_SPACE_MAP_LARGE 2009-05-26 03:32:51 +00:00
nisimura
2f739d6166 add VID 0x6011 case to match FT4232H chip. 2009-05-25 11:38:49 +00:00
nisimura
7384fe89d2 regen to sync with new usbdevs file. 2009-05-25 11:36:52 +00:00
nisimura
0a1e3a4113 add VID 0x6011 for FT4232H quad channel chip. 2009-05-25 11:35:10 +00:00
nisimura
44dbe1e84c - detect FTDI chiptype from bcdDevice field to determine the number of
channels.
- tested on 232BM, 232RL and 2232D chips.
- now capable of quad channel FT4232H.
- minor format nit and legacy title comment removal.
- non UART type bit stream (!= ucom) support is under planning.
2009-05-24 16:24:25 +00:00
nonaka
b822210843 SDHC card was able to be used. 2009-05-24 12:59:54 +00:00
he
c411502583 After the change from "struct device *" to "device_t", we now depend
on the definitions from <sys/device.h>, so include it here.
2009-05-23 19:11:19 +00:00