Commit Graph

26262 Commits

Author SHA1 Message Date
matt
1d8b3e46d3 Use PRIxVADDR 2009-12-14 00:52:38 +00:00
matt
320e681fce Only tick mii if the phy had a status change. 2009-12-14 00:52:04 +00:00
matt
95fa9f87c8 Add E1149 Phy. 2009-12-14 00:51:06 +00:00
matt
0a60906620 Add Marvel 88E1149 2009-12-13 19:20:17 +00:00
matt
422c370e41 Add RMI (NetLogic) 2009-12-13 19:19:47 +00:00
tsutsui
698e481cab Switch to using todr_[gs]ettime_ymdhms() format
which don't require struct timeval details.
Also fix a botch calling MI todr_settime(9) without rtc_offset adjustment.
2009-12-12 16:12:05 +00:00
tsutsui
428585a7d8 Remove `volatile' qualifier from argument types of
struct timeval passed to todr_gettime(9) and todr_settime(9).
We no longer have an ancient and volatile struct timeval `time'
global since we have switched to MI timercounter(9) on all port.

XXX1: some of these RTC drivers still assume 32bit time_t
XXX2: some of these should be rewritten to use todr_[gs]ettime_ymdhms()
XXX3: todr(9) man page doesn't mention todr_[gs]ettime_ymdhms()
2009-12-12 15:10:34 +00:00
tsutsui
471e528b58 Remove `volatile' qualifier from argument types of
struct timeval passed to todr_gettime(9) and todr_settime(9).
We no longer have an ancient and volatile struct timeval `time'
global since we have switched to MI timercounter(9) on all port.

XXX1: some of these RTC drivers still assume 32bit time_t
XXX2: some of these should be rewritten to use todr_[gs]ettime_ymdhms()
XXX3: todr(9) man page doesn't mention todr_[gs]ettime_ymdhms()
2009-12-12 14:44:08 +00:00
cherry
313960fcf1 regen properly for usbdevs, 1.538, _after_ commit 2009-12-12 14:30:59 +00:00
cherry
add5aa6f98 Add ID for Qualcomminc AC8700 as found in "ZTE, Incorporated ZTE CDMA Tech, rev 1.10/0.00, Works with BSNL (http://www.bsnl.co.in) EVDO service 2009-12-12 14:18:27 +00:00
cherry
a4f53c53d6 regen from usbdevs 1.538
> Add product IDs for Qualcomm RWT FCT-CDMA 2000 1xRTT Modem, ZTE Storage and CDMA 1xEVDO Modem
> From $FreeBSD: head/sys/dev/usb/usbdevs 199331 2009-11-16 20:35:16Z thompsa $
2009-12-12 14:03:48 +00:00
cherry
a67abb9cbe Add product IDs for Qualcomm RWT FCT-CDMA 2000 1xRTT Modem, ZTE Storage and CDMA 1xEVDO Modem
From $FreeBSD: head/sys/dev/usb/usbdevs 199331 2009-11-16 20:35:16Z thompsa $
2009-12-12 14:01:54 +00:00
tsutsui
bf74993921 Use time_t to calculate days and secs to avoid potential overflow. 2009-12-12 11:22:59 +00:00
tsutsui
6621c5bd3f KNF 2009-12-12 11:16:33 +00:00
tsutsui
0b5468d9dc Don't refer garbage in stack.
- An argument of struct timeval *tv passed by todr_gettime(9) is used
  for a return value and it doesn't contain valid data. Don't read it.
- Instead, use getmicrotime(9) to get a "reasonable" (i.e. current) time
  to see expected year value (which is not kept by this device).
- If current time is not valid, assume this is the first todr_gettime(9)
  call from inittodr(9) and use file system time for the "reasonable" year.

Fixes silent hangup after mountroot() on sun2.

XXX: MI todr(9) functions seem to get mangled around year ~22000.
2009-12-11 11:07:04 +00:00
dsl
7a42c833db Rename fo_drain() to fo_abort(), 'drain' is used to mean 'wait for output
do drain' in many places, whereas fo_drain() was called in order to force
blocking read()/write() etc calls to return to userspace so that a close()
call from a different thread can complete.
In the sockets code comment out the broken code in the inner function,
it was being called from compat code.
2009-12-09 21:32:58 +00:00
jakllsch
a52500257f It's not an error for a Ethernet interface to have a link-layer address.
hi cube
2009-12-08 20:38:16 +00:00
pooka
20f444ae36 Mark putter as MODULE_CLASS_DRIVER to make it autoloadable. This
fixes autoloading of puffs upon mount.
2009-12-07 13:41:44 +00:00
dyoung
a14d2f3527 Simplify device-activation hooks. 2009-12-06 23:17:09 +00:00
dyoung
e98edc8502 Delete dead code. 2009-12-06 23:15:59 +00:00
dyoung
be75895d2f Simplify device-activation hook. 2009-12-06 23:14:39 +00:00
dyoung
e347b9986c Simplify device-activation hooks. 2009-12-06 23:14:05 +00:00
dyoung
0a9ae61983 device_t/softc split. 2009-12-06 23:05:39 +00:00
dyoung
903d1910d3 Simplify device-activation hooks. 2009-12-06 23:05:06 +00:00
dyoung
c2a519975e Simplify device-activation hook. 2009-12-06 22:56:56 +00:00
dyoung
c6747de6d7 Simplify device-activation hooks. 2009-12-06 22:49:48 +00:00
dyoung
93c9b12505 Delete do-nothing device-activation hooks. 2009-12-06 22:48:17 +00:00
dyoung
8cbd7f7c54 Delete dead code: a device-activation hook. 2009-12-06 22:44:55 +00:00
dyoung
4075f812e7 Simplify these device-activation hooks using the following semantic
patch.

XXX sc_dying must die.

@@
type device_t;

identifier act, midi_softc, midiactivate, sc, self;
@@

int
midiactivate(device_t self, enum devact act)
{
(
	struct midi_softc *sc = device_private(self);
|
-	struct midi_softc *sc;
+	struct midi_softc *sc = device_private(self);
...
-	sc = device_private(self);
)
...
	switch (act) {
-	case DVACT_ACTIVATE:
-		return (EOPNOTSUPP);
-
	case DVACT_DEACTIVATE:
(
	sc->dying
|
	sc->sc_dying
)
		=
(
	1
|
	true
)
		;
-		break;
+		return 0;
+	default:
+		return EOPNOTSUPP;
	}
-	return (0);
}
2009-12-06 22:42:48 +00:00
dyoung
de0ad50405 Delete unnecessary device-activation hooks. 2009-12-06 22:40:56 +00:00
dyoung
711b27c90c Delete unnecessary device-activation hooks. Simplify the rest. 2009-12-06 22:33:44 +00:00
dyoung
efc6bfe74a Simplify device-activation hooks. 2009-12-06 21:40:31 +00:00
dyoung
7a2bcc8004 Delete the device-activation hook, it doesn't do anything useful. 2009-12-06 21:39:45 +00:00
dyoung
110a4ba3b4 Simplify several device-activation hooks. 2009-12-06 20:20:12 +00:00
dsl
b2df25db53 Make vnd_size (the returned size) 64 bit, keeping old field for ioctl
compatibility. Both fields are now unsigned.
Add compatibility for the old ioctl size.
Detect and error files which are definitely sparse (va_bytes < va_size).
Part of fix for PR/41873.
2009-12-06 16:33:18 +00:00
haad
8181298188 Add support for DM_QUERY_INACTIVE_TABLE_FLAG to dm_table_status and dm_table_deps
this flag was introduced to dm->lvm protocol in 4.16.0 version of it. Restore
vrsion check functionality and sent back actual kernel driver version.
2009-12-06 14:33:46 +00:00
haad
676cba4177 Make our driver version equal to linux driver. 2009-12-06 14:31:16 +00:00
kiyohara
19077e5352 Split internal phy. We can use ukphy(4).
SMSC manufactures some PHY.  This PHY is built into LAN9x18 Family.
2009-12-06 12:22:17 +00:00
pooka
faa8e1b3e3 Convert tsleep(&lbolt) to kpause(). Make ltsleep/mtsleep on lbolt
illegal.  I examined all places where lbolt is referenced to make
sure there were pointer aliases of it passed to tsleep, but put a
KASSERT in m/ltsleep() just to be sure.
2009-12-05 22:34:43 +00:00
jdc
4d33475520 Really prefer the external over the internal PHY by checking only that
PHY address first.  Avoid problem with bogus ukphy's attaching on the
internal PHY of the SB1000.

Also, take some quirks for internal, external or either MII PHY from
the OpenBSD driver.
2009-12-05 16:43:25 +00:00
dsl
4ea4889682 Correct what are clearly typos leading to duplicate vendor:product pairs.
Where possible values have been checked against the pcidatabase and x.org.
In some cases I've only commented on some dubious entries!
Values will be picked up by the next update.
Info from PR/36487
2009-12-05 16:30:39 +00:00
pooka
d6224f4507 Remove support for NetBSD/playstation2. 2009-12-05 16:29:10 +00:00
haad
79ad9d0df4 Install netbsd-dm.h file to include/dev/dm so it can be used by public. 2009-12-05 11:34:37 +00:00
haad
bd8ee331ed Include only user-kernel communication protocol related information in this header. 2009-12-05 11:30:26 +00:00
haad
ca10901dd8 Remove wrong TODO item, it violates abstraction between kernel-libdevmapper
and lvm tools.
2009-12-05 01:25:12 +00:00
haad
8f50b1a274 Fix bug in dm_table_resume_ioctl where dmv->flags was sent back to libdevmapper
except flags variable. This fixes weird behaviour, when worng links to
devices in /dev/mapper were created after lvrename/lvresize.
2009-12-05 01:21:41 +00:00
dyoung
a03e1f359b Oops, there was one mii_activate() call left. Delete it. 2009-12-04 22:45:28 +00:00
dyoung
2c7081ae8a Delete unused function mii_activate(). 2009-12-04 22:37:35 +00:00
martin
63d5a98148 Properly detach phys 2009-12-04 22:13:26 +00:00
jdc
2e4745d49b Only set 0x4FF in the transmit register for gigabit variants. Set 0x100
otherwise.
2009-12-04 13:35:56 +00:00
martin
4052083605 Fix a few nits in gem_detach:
Shuffle some bus_dmamem_ operations around, so they actually clean up
in the correct order.
Do not destroy a callout that might be stopped by if_detach later.
When detaching child devices fails, we have passed the point of no return
already, so complete our own cleanup and return the error in the end.
This happens for example when we have been unable to accomodate all phy
devices at attach time (and this is a separate bug).
2009-12-04 11:55:01 +00:00
njoly
743418620c Cleanup interrupt establish error messages. Do not mix
aprint_error/aprint_normal/printf calls for a single line.
2009-12-04 11:13:04 +00:00
njoly
5d456b9df1 Fix NetBSD keyword expansion. 2009-12-04 10:42:39 +00:00
cegger
82b81a0cd1 Enumerate ACPI PCI devices. Allows to link PCI with ACPI devices.
Patch presented on tech-kern@
http://mail-index.netbsd.org/tech-kern/2009/11/28/msg006552.html

'nice work' Jukka Ruohonen
2009-12-03 21:04:29 +00:00
mjacob
293ca32376 Have as a backup at least *some* usable WWN. 2009-12-03 14:51:48 +00:00
kiyohara
7fe24103db Maybe supported LAN9218 Family. 2009-12-02 12:51:50 +00:00
skrll
17b0854823 Spell busy correctly. 2009-12-01 23:16:00 +00:00
haad
f26bfe28da Revert my commit which have added knowledge about dm targets to libdevmapper,
this breaks abstraction. Because only lvmtools/lvmlib and device-mapper can
have knowledge about target mapping and libdevmapper only passes requests
from lvmtools to kernel and back. Bump major library and driver version.

Requested by: yamt@
2009-12-01 23:12:09 +00:00
dyoung
8a18e16048 Delete wdcactivate() prototype, it's gone away for good. 2009-12-01 01:06:31 +00:00
dyoung
85acc87516 Simplify the device activation routine. 2009-12-01 01:05:23 +00:00
dyoung
e3f50d6767 KNF: whitespace. 2009-12-01 01:03:54 +00:00
tsutsui
47f87355eb Add a driver for DisplayLink DL-1x0/1x5 based USB LCDs and USB-VGA adaptors.
Ported by FUKAUMI Naoki from OpenBSD with many modification.
No particular comments (except from me) on tech-kern@.

There are still many TODO even in MI wscons(4) API to handle this device:

 * No detach function for wsdisplay(9).
   Unpluging a device causes a panic. (should be trivial?)

 * ioctl() for X server support is currently commented out. ("notyet")
   OpenBSD allows device depedent ioctl()s and they introduced
   UDLIO_DAMAGE ioctl for the damage extension ops of X servers for udl(4).
   Before blindly pulling such ioctl(), probably we should discuss
   how such specific operations should be handled in MI wscons(4) API.

 * Screen text of wsemul tty could be mangled during large scroll ops.
   All tty output operations are invoked via ttstart() with the giant
   tty_lock mutex held, so we can't call cv_wait(9) to wait resources
   for data xfers via usbdi(9).h, then text output is silently discarded
   on resource shortage. To handle this without tty_lock reorganization,
   we have to change wsdisplay(9) APIs (especially wsdisplaystart()) to
   return a number of actually handled characters as OpenBSD does, but
   it may require whole API changes around child rasops(9) etc.

 * No MI API definition to convert mmap(9) cookie to physical address.
   The conversion is required to create a cookie which will be passed to
   pmap_phys_address(9) in uvm/uvm_device.c:udv_fault(). Most other
   drivers use bus_dmamem_mmap(9) or bus_space_mmap(9), but udl(4) uses
   kmem_alloc(9)'ed memory for bitmap data.
   Furthermore, pmap(9) man page says about pmap_phys_address(9):

     "This function is provided to accommodate systems which have
      physical address spaces larger than can be directly addressed
      by the platform's paddr_t type. The existence of this function is
      highly dubious, and it is expected that this function will be
      removed from the pmap API in a future release of NetBSD."

   As the man page says we have already had split paddr_t and vaddr_t,
   so it's time to remove such old ugly cookie and change all mmap(4)
   functions (mostly in MD bus_dma(9) and bus_space(9) APIs) to return
   simple physical address in paddr_t?

 * We need proper device names for wsdisplay1 (and more devices).
   Currently wsdisplay0 uses ttyE0 through ttyE253 (minor 0 to 253)
   for screens, ttyEstat (254) for status, and ttyEcfg (255) for config.
   The next wsdisplay1 will use 256 through 509 for screens, 510 for stat,
   and 511 for config but what names should we use for them? ttyFxxx?

 * How to handle multiple sets of wskbd/wsdisplay on a single machine.
   rc.d/wscons doesn't provide method to specify wscons control devices.
   There is no proper interface to specify which keyboard should be connected
   to which wsdisplay, etc.

 * And maybe more...
2009-11-30 16:18:34 +00:00
sborrill
57a76ebb19 Add support for Intel 3400 SATA 2009-11-30 09:33:48 +00:00
sborrill
c3a158ad84 Regen 2009-11-30 09:32:11 +00:00
sborrill
599b5d0177 Add Intel 3400 devices 2009-11-30 09:31:11 +00:00
cegger
63ec7a18dd Introduce acpi_eval_set_integer().
Use it in various acpi drivers to simplify code.
Patch presented on tech-kern@:
http://mail-index.netbsd.org/tech-kern/2009/11/28/msg006552.html

No comments.

XXX Is there an acpi(9) manpage?
2009-11-29 21:32:50 +00:00
uebayasi
c197134fb4 Remove a debug printf(). 2009-11-29 18:08:22 +00:00
kiyohara
7e526c7d4b Fix "+ 0x100" instead of "| 0x100" in the case ID 0x11[5678]A. 2009-11-29 10:17:01 +00:00
kiyohara
5a4eb24b7c Change print messages.
1. Use aprint instead of DPRINTF in swap mode.
  2. Locates and vendor/LSI names 1-line print.
  3. Also print (and maybe support) LAN92xx.
2009-11-29 10:06:19 +00:00
kiyohara
171390a416 Set mii_media_active in lan9118_ifm_change(). This is like ukphy_status().
Also LAN9118_TXS_NC is valid when if FDX.
2009-11-29 09:34:20 +00:00
kiyohara
1f5a3ad189 Fix register access to MII in lan9118_mii_readreg()/lan9118_mii_writereg(). 2009-11-29 05:07:49 +00:00
cegger
afba2142ee initialise -> initialize
unabled -> unable
wrap long line
2009-11-28 17:03:17 +00:00
cegger
0409ca03ee u_int32_t -> uint32_t
struct device * -> device_t
2009-11-28 17:02:14 +00:00
kiyohara
96ade3c067 Comment out interrupt for LAN9118_INT_PHY_INT and LAN9118_INT_PME_INT. These
not support yet...
2009-11-28 13:20:41 +00:00
kiyohara
ee2bb9f5be Check mbuf size and buffers. 2009-11-28 12:16:57 +00:00
nonaka
c6e1f64d7a Always sector size is treated as 512 bytes. 2009-11-28 10:00:24 +00:00
kiyohara
8d9bae96a9 Support mii_tick().
Thanks tsubai@.
2009-11-28 08:44:00 +00:00
dsl
3cac425251 Add patch from PR/11805 2009-11-27 20:56:28 +00:00
mbalmer
8a44b5e050 Add support for USB HID devices that report absolute coordinates instead
of relative movement data, i.e. touchpanels.  Please note that calibration
must be done outside the wsons(4) driver for now.
2009-11-27 08:35:05 +00:00
njoly
85cadc2388 Cleanup interrupt establish error messages. Do not mix
aprint_error/aprint_normal/printf calls for a single line.
2009-11-26 15:17:08 +00:00
pooka
3c809c1925 include sys/param.h first, as is the convention 2009-11-26 07:35:39 +00:00
kenh
b4bb3813ef On the ARM platform, sys/param.h needs to be before sys/mutex.h, otherwise
sys/device.h will fail compilation (struct kmutex will not be defined
completely).
2009-11-26 01:23:56 +00:00
macallan
f3d037fec4 make this compile on sparc64 2009-11-25 21:10:56 +00:00
rmind
9303fb5a00 Remove IPL_LPT and IPL_IPI aliases, use the actual IPLs.
Fix some broken comments.
2009-11-25 14:28:49 +00:00
cegger
6f85be6a06 By reading the ACPI dump I figured out that my
HP Pavillion dv9700 laptop features a fan sensor
in the ACPI Thermal Zone which is beyond of the ACPI
Spec.

envstat shows
[acpitz0]
  Processor Thermal Zone:     56.000   95.000                       degC
                     FAN:       2840                                 RPM

envstat -W shows the limits
[acpitz0]
  Processor Thermal Zone:     55.000                                degC
                     FAN:       2570     4500     2000               RPM

Patch presented on tech-kern@.

No comments.
2009-11-25 13:54:23 +00:00
cegger
8ced747602 Add ACPI SLIT parser. This is part of NUMA support.
Tested on a 8-node machine.

Patch presented on tech-kern@, port-i386@ and port-amd64@.

No comments.
2009-11-25 13:21:49 +00:00
cegger
688b7ce5ae Add ACPI SRAT parser. This is a part of NUMA support.
Tested on 1-node, 2-node and 8-node machines.
Patch presented on tech-kern@, port-i386@ and port-amd64@.

No comments.
2009-11-25 13:17:06 +00:00
njoly
b046beb10c Do not use aprint_normal for error messages. 2009-11-24 15:51:39 +00:00
cegger
29e2a7eb92 evaluate _RTV as preparation for passive cooling. 2009-11-23 14:42:39 +00:00
kiyohara
d3d39bd6e8 - Wait the ready 5sec, not 5msec.
- Set IFM_ACTIVE to ifm_status instead of ifm_active.  ifconfig(8) always said
  'no carrier'...
2009-11-23 09:41:53 +00:00
rmind
dbd9b86792 Remove some unecessary includes sys/user.h header. 2009-11-23 02:13:44 +00:00
dsl
9a2a9c3ff9 Remove "splurious interrupt" message. The IRQ might be shared.
Fixes PR/11410
2009-11-22 21:18:42 +00:00
mbalmer
0ae57f90dd more s/the the/the/ 2009-11-22 19:09:15 +00:00
jakllsch
84f4ce4699 Change bus_space_subregion() size for each SATA PHY register from 1 to 4,
as we do a bus_space_read_4() within these subregions.
2009-11-21 23:47:01 +00:00
jakllsch
fb0df3c9f4 Fix matching of CX700. Should address PR/39063.
Also,

Change bus_space_subregion() size for each SATA PHY register from 1 to 4,
as we do a bus_space_read_4() within these subregions.

Use PCI_MAPREG_START where appropriate.
2009-11-21 23:44:25 +00:00
jakllsch
58999a2a5a regen. 2009-11-21 22:59:03 +00:00
jakllsch
96746a2c6d Add CX700 and VX800/VX820 LPC bridge IDs. 2009-11-21 22:58:17 +00:00
christos
a6560122c5 whitespace police 2009-11-21 21:57:47 +00:00
njoly
2904cfc8f0 Cleanup boot messages, use aprint functions. 2009-11-21 14:51:04 +00:00
jakllsch
b492fcba55 Switch VT8237R SATA to via_sata_chip_map_7(). via_sata_chip_map_7()
works fine and is consistent with the other VIA SATA controllers.

Tested on VT8237R+.

(Somewhat amazing that via_sata_chip_map_0() worked at all for the
second port.)
2009-11-20 20:16:30 +00:00
bouyer
7f7593a68d Remove duplicate PCI_PRODUCT_BROADCOM_BCM5709 entries.
BNX_MAX_MRU is now the 1500-bytes MTU; use BNX_MAX_JUMBO_MRU instead.
2009-11-20 18:24:29 +00:00
bouyer
1f4d2fce07 Sync with OpenBSD: if_bnx.c,v 1.85. Major changes:
Add support for the Broadcom BCM5709 and BCM5716 chips. This upgrade
the B06 firmware, and add the B09 firmware required by the BCM5709.
Remplace TX dmamap array with a dynamically-grown list.

Tested with:
bnx0 at pci4 dev 0 function 0: Broadcom NetXtreme II BCM5708 1000Base-T
and
bnx0 at pci0 dev 0 function 0: Broadcom NetXtreme II BCM5709 1000Base-SX
2009-11-18 23:11:16 +00:00
bouyer
e864a44956 Support BCM5709CAX and BCM5709C PHYs. 2009-11-18 23:02:12 +00:00
bouyer
037713ff86 Regen: Add BCM5709CAX and BCM5709C PHYs. 2009-11-18 23:01:47 +00:00
bouyer
d4753b2acd Add BCM5709CAX and BCM5709C PHYs. 2009-11-18 23:00:46 +00:00
bouyer
0ba7ca8106 Regen: Complete BROADCOM BCM5709 family, and add BCM5716 family. 2009-11-18 22:59:56 +00:00
bouyer
043ccc97e9 Complete BROADCOM BCM5709 family, and add BCM5716 family. 2009-11-18 22:57:38 +00:00
macallan
910612113d Make colour depths higher than 8bit work in X.
Now igsfb will switch to 16 or 32 bit colour when entering graphics mode,
depending on available video memory and the given mode.
While there re-initialize the colour map etc. when leaving graphics mode.
2009-11-18 21:59:38 +00:00
jakllsch
1ae9ec6017 Match VT8251 IDE controller and enable UDMA Mode 6 thereon.
Should fix PATA speed issue in PR/37517.
Due to lack of hardware, only compile tested at this point.
2009-11-18 19:42:18 +00:00
jakllsch
49e23db07d regen. 2009-11-18 18:44:55 +00:00
jakllsch
afcd4ff2b9 Drop unused/duplicate VIATECH VT8237_PCIB entry.
While here, drop "(Apollo KT600)" from VIATECH VT8237, and s/ISA/LPC/.
Additionally, add LPC Bridge ID for VT8251 from PR/37517.
2009-11-18 18:42:08 +00:00
yamt
004373b0b4 comment 2009-11-18 12:24:05 +00:00
macallan
1049d3d651 Write something more sane into the pixel format register - it's not pixel size
in bytes although that works in 8 and 16 bit colour depth.
While there do some magic number reduction.
2009-11-18 06:10:50 +00:00
enami
f682fea033 Add an entry for AVlab's low profile PCI 4 port serial card, which is
sold in japan from kuroutoshikou as SERIAL4P-LPPCI2.
2009-11-18 00:28:09 +00:00
jld
f1a1ad338d Finally commit the RAIDframe parity map Summer Of Code project.
Drastically reduces the amount of time spent rewriting parity after an
unclean shutdown by keeping better track of which regions might have had
outstanding writes.  Enabled by default; can be disabled on a per-set
basis, or tuned, with the new raidctl(8) commands.

Discussed on tech-kern@ to a general air of approval; exhortations to
commit from mrg@, christos@, and others.

Thanks to Google for their sponsorship, oster@ for mentoring the
project, assorted developers for trying very hard to break it, and
probably more I'm forgetting.
2009-11-17 18:54:26 +00:00
tsutsui
9dc186d614 Reserve WSDISPLAY_TYPE for DisplayLink DL-1x0/DL-1x5 USB LCDs and
USB-VGA adaptors (which may require a new ioctl for DUMBFB ops). From
FUKAUMI Naoki.
2009-11-15 17:42:24 +00:00
tsutsui
6bccdb1af3 Regen from usbdevs rev 1.537:
> Add IDs for DisplayLink DL-1x0/1x5 based USB LCDs and USB-VGA adaptors.
> Info from FUKAUMI Naoki's udl(4) driver patch.
2009-11-15 17:34:32 +00:00
tsutsui
dd10c2525c Add IDs for DisplayLink DL-1x0/1x5 based USB LCDs and USB-VGA adaptors.
Info from FUKAUMI Naoki's udl(4) driver patch.
2009-11-15 17:33:28 +00:00
uebayasi
3e92dd482c Sprinkle static. 2009-11-14 17:06:12 +00:00
cegger
1225bb1b7a use __arraycount 2009-11-14 09:54:10 +00:00
cegger
17429828e3 include <sys/device_if.h> for device_t. There is no use of struct device. 2009-11-14 09:42:50 +00:00
tsutsui
c03477f121 Fix a wrong index value for edid_products[] inside #ifdef EDIDVERBOSE in
edid_findproduct(). From Yasushi Oshima via FUKAUMI Naoki in udl(4) patch.
2009-11-14 09:19:41 +00:00
dyoung
0db5f71432 Don't use com_activate(), it's gone away. Thanks to Andreas Wrede
for pointing out that these drivers still used com_activate().

Use device_private().  Join some lines.

Remove superfluous activation hooks.

Add child-detachment hooks (not used, yet).

TBD: device_t/softc split.
2009-11-13 01:14:35 +00:00
dyoung
a9d7fca27d Don't use com_activate(), it's gone away. Delete superfluous
activation hook, pcmcom_activate().

Add a child-detachment hook and use it.

Use device_private().

Cosmetic: use __arraycount().  Join a couple of lines.  Delete a
set of superfluous parentheses.
2009-11-12 22:46:47 +00:00
dyoung
021235e4a6 Remove some dead code. 2009-11-12 20:38:35 +00:00
dyoung
05a97b4287 Delete definition of com_activate(), it's been removed. 2009-11-12 20:37:44 +00:00
dyoung
b2f2de753f Move the code in com_activate() to com_detach(), where it always
belonged.  Remove com_activate().

Consolidate information about the console on com(4) in a new struct
comcons_info.

Support detachment & re-attachment of a system console on com(4).
Re-attachment is somehow incomplete.  Ideally, if some other device
could take over as console, it would, but we're not quite there,
yet.
2009-11-12 20:37:09 +00:00
dyoung
90c2b25e8f Don't use com_activate(), it's going away. 2009-11-12 20:30:10 +00:00
dyoung
9ab08beb52 Call com_detach() before doing any bus-specific detachment.
Don't use com_activate(), it's going away.
2009-11-12 20:29:30 +00:00
dyoung
bb858bb7d5 Call the common detach routine, com_detach(), and get out on error,
before starting the bus-specific detachment.

com_activate() is going away, so don't use it any more.
2009-11-12 20:28:32 +00:00
dyoung
8e38167faa Remove definition of spc_activate(), it has gone away. 2009-11-12 20:15:02 +00:00
dyoung
2957bfb586 Remove superfluous activation hook.
Add a child-detachment hook.
2009-11-12 20:14:04 +00:00
dyoung
af7d639aad Re-order operations in usb_detach() so that if a usb(4) instance's
children will not detach, the instance is not left in an inconsistent
state.

If uhub(4) port is disconnected, forcefully detach the children on
that port.

Simplify detachment hooks.  (sc_dying must die!)

Pass along and respect detachment flags, esp. DETACH_FORCE,
throughout.
2009-11-12 20:11:35 +00:00
dyoung
f611b6f9fc Simplify activation hooks. (sc_dying must die!) 2009-11-12 19:58:27 +00:00
dyoung
edcba9e1df Simplify activation hook. (sc_dying must die!)
unifdef -D__NetBSD__ -U__FreeBSD__ -U__OpenBSD__.
2009-11-12 19:53:56 +00:00
dyoung
8f3030b535 Simplify activation hook. (sc_dying must die!) 2009-11-12 19:53:14 +00:00
dyoung
189c253b00 Remove superfluous activation hook. 2009-11-12 19:52:14 +00:00
dyoung
8d5198657e Simplify activation hooks. (sc_dying must die!) 2009-11-12 19:51:44 +00:00
dyoung
43acd4eaa8 Simplify activation hook. (sc_dying must die!)
s/device_ptr_t/device_t/.
2009-11-12 19:50:01 +00:00
dyoung
ed1618c692 Simplify activation hook. (sc_dying must die!)
unifdef -D__NetBSD__ -U__FreeBSD__ -U__OpenBSD__.
2009-11-12 19:49:03 +00:00
dyoung
8488e3e07c Simplify activation hook.
(sc_dying must die!)
2009-11-12 19:46:01 +00:00
dyoung
acb06354f1 Remove superfluous activation hooks. 2009-11-12 19:44:17 +00:00
dyoung
240fa6310f Remove superfluous activation hook. 2009-11-12 19:39:26 +00:00
dyoung
b5d9476c14 Simplify activation hook. 2009-11-12 19:38:35 +00:00
dyoung
04b4cf9e54 Remove superfluous activation hook. 2009-11-12 19:37:17 +00:00
dyoung
d061cb2faa Simplify activation hook. 2009-11-12 19:35:59 +00:00
dyoung
3e567daf68 Simplify activation hook. Replace each use of sc_invalid by either
calling config_deactivate(9) or device_is_active(9).
2009-11-12 19:32:14 +00:00
dyoung
a6c5930eb6 Simplify activation hook. 2009-11-12 19:30:49 +00:00
dyoung
91901a7869 Simplify activation hook. Replace each use of sc_invalid by either
calling config_deactivate(9) or device_is_active(9).
2009-11-12 19:28:59 +00:00
dyoung
e33ae76976 Remove superfluous activation hook. 2009-11-12 19:25:08 +00:00
dyoung
f4ac73e2da Don't use the superfluous activation hook.
Cosmetic: while I'm here, join two lines.
2009-11-12 19:24:06 +00:00
dyoung
171b2851cf Simplify activation hook. 2009-11-12 19:22:08 +00:00
dyoung
310df30dc7 Remove superfluous activation hook. 2009-11-12 19:20:08 +00:00
uebayasi
49fdab3079 Comment & whitespace. 2009-11-12 08:54:00 +00:00
uebayasi
024d1252f2 Style. 2009-11-12 08:41:49 +00:00
uebayasi
4a2c3ae0e4 Whitespace & style. 2009-11-12 08:32:57 +00:00
uebayasi
4633367fa2 usbd_do_request_flags(..., 0, 0, USBD_CONFIG_TIMEOUT) is equivalent to
usbd_do_request(...).  Remove an unneeded cast.  No functional changes.
2009-11-12 08:28:31 +00:00
uebayasi
f3b7685602 Indent. 2009-11-12 08:16:50 +00:00
uebayasi
0ee2b2ae9b Typo in a debug printf. 2009-11-12 07:58:32 +00:00
macallan
d0b2c36849 add modeseting support. Now if there's a mode string in igsfb_devconfig the
driver will try to use it if at all possible, otherwise fall back to the old
hardcoded 1024x768x60 mode.
2009-11-11 17:01:17 +00:00
macallan
7599b5aef4 add another convenience function - of_get_mode_string() to extract a Sun-like
video mode specifier from output-device
2009-11-11 16:56:52 +00:00
pooka
db8264b1d5 be a little more verbose in DIAGNOSTIC printf 2009-11-11 15:49:05 +00:00
he
c90853c4da Make this actually build, as part of the sgimips GENERIC32_IP2x kernel. 2009-11-11 15:34:37 +00:00
macallan
293ac096d1 add support for an optional machine-dependent mmap() method, so the bus
backend can do whatever voodoo necessary to the aperture, IO space etc.
Mainly for shark, to get around the weird ARM bus_space.
2009-11-10 22:23:22 +00:00
christos
f026e97901 avoid doing extra work by just zeroing/printing real blocksize. 2009-11-10 20:39:36 +00:00
christos
6be7b72df0 add a missing c. 2009-11-10 20:24:30 +00:00
christos
189751127b avoid variable array stack allocation by enforcing and allocating always the
maximum.
2009-11-10 20:05:50 +00:00
tron
119d5d24b7 Backout the last two revisions because the cause panic on LOCKDEBUG
kernels. Problem reported by David Young.
2009-11-10 16:49:53 +00:00
ghen
a4951d8ac9 Add missing 102nd key for European keyboards. 2009-11-08 15:32:52 +00:00
dyoung
8b43bcb6ad Don't deactivate a child before detaching it, that's not necessary.
Don't take a device off of the ppbus(4)'s list of children in the
detach routine, but add a child-detachment hook that does it for
us.  As a nice side-effect, we can probably detach ppbus(4) children
with drvctl(8), now.

Compile-tested, only.

XXX Does anybody even use ppbus(4)?  It's not even in the ALL
XXX configuration for i386!
2009-11-07 00:05:49 +00:00
dyoung
1a15725cd0 Simplify mii_phy_activate(). Remark in mii_phy_activate() and
mii_phy_detach() comments that we may need to invalidate the parent's
media setting.  No functional change intended.
2009-11-06 18:41:25 +00:00
jakllsch
d50bb58a85 Fix POWER_IOC_GET_TYPE.
The longest string in use with this seems to have been "acpi",
so size_t covered that, but on 32-bit ports omited the NUL.
2009-11-06 18:28:10 +00:00
rafal
4e042dc0d8 Fix kern/41737 -- add quirks to make MS Wireless Laser Mouse 6000 work. 2009-11-06 04:42:27 +00:00
dyoung
bb8630fab4 Delete the useless activation hook. Add a child-detached hook and
a rescan hook.  Detach children before detaching self.
2009-11-05 18:20:40 +00:00
dyoung
c6acecde0a Use deviter(9) instead of accessing alldevs directly. Compile-tested,
only.
2009-11-05 17:52:32 +00:00
rafal
c90efca2b1 Regen for MS Wireless 2.4Ghz Xmitter (for wireless mice, etc.) 2009-11-05 03:46:12 +00:00
rafal
21861f5135 Add Microsoft's Wireless 2.4Ghz transmitter (used for e.g. wireless mice). 2009-11-05 03:44:50 +00:00
jakllsch
9ae52821d4 Use hme_init() to provide a non-NULL ifp->if_init. 2009-11-03 22:06:30 +00:00
pgoyette
78b6b951fd Set iba_type properly. The only thing that ever looks at this is the
'options I2C_SCAN' code in dev/i2c/i2c.c which is disabled by default.
2009-11-03 12:51:56 +00:00
christos
2365d83de9 don't pull a 1.5K softc on the stack to do a chip ident. Idea from mrg. 2009-11-02 21:37:44 +00:00
rmind
2b261c7e05 rnd_sample_allocate_isr: pass correct flag to pool_get().
Should fix PR/39325.
2009-11-01 21:08:32 +00:00
uebayasi
280c33f72b EHCI_NULL is already little-endian. No htole32() needed. Pointed out by
Tsubai Masanari.
2009-11-01 13:26:50 +00:00
uebayasi
ecc465882d Fix some whitespaces. 2009-11-01 07:23:13 +00:00
uebayasi
38f40b7b62 Update referencial URLs. 2009-11-01 06:36:44 +00:00
is
57766df4d3 regenerate:
Quirk to regenerate residue for borken UMASS devices; needed (at least)
for Supertop IDE bridge. From Matthias Kretschmer, PR 42225.
2009-10-30 16:25:46 +00:00
is
5886aca913 Quirk to regenerate residue for borken UMASS devices; needed (at least)
for Supertop IDE bridge. From Matthias Kretschmer, PR 42225.
2009-10-30 16:22:32 +00:00
christos
64e2458fef spell the guys name properly. 2009-10-30 01:57:48 +00:00
macallan
b37fcdb29c fix occasionally wrong colours in rectangle fills 2009-10-28 04:25:13 +00:00
macallan
91a682eb8a A driver for the Permedia 2 graphics processor, so far it's been tested only
on sparc64 with a Sun PGX32 / TechSource Raptor GFX 8P
So far it accelerates block copies, rectangle fills and the cursor, it
supports the usual wsdisplay / vcons stuff.
TODO:
- character drawing by hardware so we don't need to map the framebuffer
- DDC2 support
- mode setting
This driver still relies on the firmware to set up graphics modes etc. so it
won't work on x86 ( or non-OpenFirmware for that matter ) unless you use the
VESA BIOS to set up graphics and pass the right properties ( width, height
etc. ) to the driver. For the same reason it will work only if it's the
OpenFirmware console.
2009-10-28 02:10:27 +00:00
elric
022690d221 Assign copyright to TNF on these old files. 2009-10-27 23:04:41 +00:00
martin
7ef4d1bd9d Fix endianess issues when accessing the B-channel fifos. 2009-10-27 21:47:23 +00:00
joerg
af76846cf3 Reduce a noise from a debug printf to debug level 2009-10-23 20:41:11 +00:00
snj
7e82f68c7b Switch to a 2 clause license. Approved by joff@ (copyright holder). 2009-10-23 00:39:29 +00:00
snj
b094016798 Drop 3rd and 4th clauses. OK gwr@ leo@ (copyright holders). 2009-10-22 20:15:45 +00:00
snj
e88e7f274c Drop 3rd and 4th clauses. Approved by soren@ and Onno van der Linden
(copyright holders).
2009-10-22 18:47:56 +00:00
snj
78f74058b2 Drop 3rd and 4th clauses (except on files where copyright is shared
with UC, in which case only the ad clause has been removed). Approved
by mhitch@ (copyright holder).
2009-10-21 23:53:38 +00:00
snj
febb7cce65 Drop 3rd and 4th clauses. Approved by gwr@ (copyright holder). 2009-10-21 23:12:09 +00:00
rmind
40cf6f3659 Remove uarea swap-out functionality:
- Addresses the issue described in PR/38828.
- Some simplification in threading and sleepq subsystems.
- Eliminates pmap_collect() and, as a side note, allows pmap optimisations.
- Eliminates XS_CTL_DATA_ONSTACK in scsipi code.
- Avoids few scans on LWP list and thus potentially long holds of proc_lock.
- Cuts ~1.5k lines of code.  Reduces amd64 kernel size by ~4k.
- Removes __SWAP_BROKEN cases.

Tested on x86, mips, acorn32 (thanks <mpumford>) and partly tested on
acorn26 (thanks to <bjh21>).

Discussed on <tech-kern>, reviewed by <ad>.
2009-10-21 21:11:57 +00:00
rmind
f95af63371 Drop 3rd and 4th clauses from Ichiro FUKUHARA's license.
Reviewed and approved by ichiro@ (copyright holder).
2009-10-21 14:15:50 +00:00
christos
32f18d7dbe make this compile again. 2009-10-20 19:04:59 +00:00