Commit Graph

21819 Commits

Author SHA1 Message Date
christos
fffc9c66c9 fix fallout from caddr_t changes. 2007-03-04 07:54:07 +00:00
christos
53524e44ef Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
tsutsui
8c864d4bd5 Fix EEPP_INTMAP values, as per my ISA EtherExpress PRO/10.
(though it still has some other problem)
2007-03-04 02:59:07 +00:00
jmcneill
963e8dd8ad Regen. 2007-03-03 23:50:40 +00:00
jmcneill
edfe9e885a Add pcHDTV HD-5500 HDTV video capture 2007-03-03 23:49:49 +00:00
tsutsui
5c8caf9e94 Add an entry to match hwrev RTK_HWREV_8100E_SPIN2 too.
XXX: should we use PCI_REVISION() rather than hwrev
     for 8139C+ as OpenBSD does?
2007-03-03 17:23:12 +00:00
jnemeth
7cab5bde24 add support devctl properties 2007-03-03 02:44:44 +00:00
jmcneill
7f8a6c2923 Regen. 2007-03-01 22:15:08 +00:00
jmcneill
b792a5796f Add Conexant CX2388X Audio/Video Decoder 2007-03-01 22:14:48 +00:00
martin
2fdb6bb1bd Make this compilable from userland 2007-03-01 21:38:17 +00:00
martin
dd8b45ebc6 Split the disklabel checksum function into two, so we can pass the
length separately.
Use this for foreign-endianess labels in wedge autodiscovery, and
calculate the checksum of those before we swap various fields in the
label.
2007-03-01 21:30:50 +00:00
thorpej
ebd626809e TRUE -> true, FALSE -> false 2007-03-01 17:31:35 +00:00
macallan
57fb2c65f9 enable ioctl(OFIOCSET) so eeprom can actually change PROM settings on
OpenFirmware machines
2007-02-28 20:33:50 +00:00
tsutsui
a111aec3cd Apply patches which may fix RX stall problem on nfe(4):
- make DMA descriptors volatile to avoid possible unintended reordering
  which might cause some race conditions
- process interrupts until all NFE_IRQ_WANTED bits are handled

and also put misc fixes:
- return 1 and call nfe_start() in nfe_intr() only if any own interrupts
  are actually handled
- use bus_dmamap_load_mbuf(9) for RX mbufs rather than bus_dmamap_load(9)
  with mtod(9) and MCLBYTES
- check sc->txq.queued to see if TX descriptors are queued or handled
  in nfe_start() and nfe_txeof()
- use proper BUS_DMASYNC_{PRE,POST} ops
- prepare and use NFE_[RT]X_NEXTDESC() macro
- rename NFE_TX_TCP_CSUM to NFE_TX_TCP_UDP_CSUM since it also enables
  hardware udp4csum-tx for UDP4 packets
- some minor optimization
- misc KNF

Tested and confirmed by matthew green by
"to send >25MB/sec to nfe0 for over one hour,"
and also tested by me (with light TRX load on 100baseTX though)
for a month.
2007-02-28 17:40:11 +00:00
wiz
5c09ab218d Add casts to debug printf so it also compiles on i386.
Noted by veego@
2007-02-26 21:35:44 +00:00
drochner
34d41b6ccb Another attempt to read string descriptors at once, this time with
the largest size which makes sense (254). See rev. 1.114-116 for
possible problems, but that was with len=255 which is an impossible
size for a string descriptor.
Someone with a "kue" please test this.
2007-02-26 15:16:59 +00:00
drochner
3ccaca911b -remove "bDescriptorSubtype" from usb_descriptor_t - this is not part
of the common USB spec
-Fix length of string descriptor: Descriptors have only a byte field
 for length, so 2*127+2 is already too much. Some devices obviously
 don't reply to string read requests with impossible length which
 happened if "sizeof(usb_string_descriptor_t) was used.
2007-02-26 13:58:36 +00:00
drochner
d91012791a Define a usb_cdc_descriptor_t which contains the class specific
"bDescriptorSubtype" field and change usb_find_desc()/usb_find_desc_if()
to use it. (The latter functions should not be used by generic code;
I've left the names for now for compatibility.)
Rename USBD_SUBTYPE_ANY to make clear that it is not generic.
2007-02-26 13:50:06 +00:00
drochner
47032dbc5e -g/c usbd_init()/usbd_finish() which don't do anything useful
-use <fs/unicode.h> for utf16->utf8 conversion instead of a private
 implementation
-streamline the COMPAT_30 utf16->ascii conversion a bit: remove
 length check (USB_MAX_STRING_LEN is too large to be useful) and
 replace array index arithmetics
2007-02-26 13:44:40 +00:00
drochner
515beb215f g/c calls to usbd_init()/usbd_finish() which don't have an effect 2007-02-26 13:38:09 +00:00
drochner
527f6a72af don't use usb_find_desc() which has some "subtype" semantics which
should not be used outside of device classes defining it
2007-02-26 13:36:01 +00:00
drochner
a0afd1c3d9 Remove the check which disallows to connect a bus powered hub to another
bus powered hub. While one can interpret the spec that way, it is not
stated clearly, and is at most a side effect of power budgeting.
Also, there are devices which don't report correctly whether they
are self powered, so the check was unreliable.
2007-02-26 13:33:09 +00:00
drochner
ff825e3a80 The manpage promises not to touch the device on USB_GET_DEVICEINFO.
Make it so.
2007-02-26 13:28:56 +00:00
drochner
8fd98300b1 -in root hub emulation, return a sane value as language code
-constify "methods" tables and (partly) descriptor templates
2007-02-26 13:26:45 +00:00
drochner
f8b074ef41 allow the bus/pipes methods tables to be const 2007-02-26 13:23:59 +00:00
drochner
c033a8d4ed Don't assume that usb_descriptor_t contains a bDescriptorSubtype field.
This is class specific and shouldn't be in a generic definition.
2007-02-26 13:14:11 +00:00
martin
ade480cf0b Make it at least compile again (const propagation) 2007-02-25 21:06:57 +00:00
darcy
db4d899fe8 Add Canon PowerShot SD630 camera. 2007-02-25 14:22:58 +00:00
tsutsui
075b18ca23 Try to map both PCI I/O and memory space and remove #ifdef RTK_USEIOSPACE.
Tested on dreamcast, landisk, and macppc with 8139C on PCI slot.
2007-02-25 04:19:32 +00:00
msaitoh
7db9e02335 fix media link issues with fiber-based card
fixes PR#35797
2007-02-23 08:22:06 +00:00
msaitoh
f0a2eb28e5 fix some negotiation problems on wm(4).
will fix PR#30078, PR#30490, PR#30906, PR#33429, PR#35386.
2007-02-23 03:03:10 +00:00
riz
52138eeaf6 Defer dkwedge_discover() until after interrupts are enabled. This
allows a kernel with options DKWEDGE_AUTODISCOVER to boot
on a machine with a twa(4) card.

ok matt@
2007-02-22 22:28:32 +00:00
thorpej
dd962f8680 Pick up some additional files that were missed before due to conflicts
with newlock2 merge:

Replace the Mach-derived boolean_t type with the C99 bool type.  A
future commit will replace use of TRUE and FALSE with true and false.
2007-02-21 23:48:10 +00:00
thorpej
712239e366 Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
2007-02-21 22:59:35 +00:00
mrg
4410329b87 add a pair of new bus_dma(9) functions:
int _bus_dmatag_subregion(bus_dma_tag_t tag,
				  bus_addr_t min_addr,
				  bus_addr_t max_addr,
				  bus_dma_tag_t *newtag,
				  int flags)
	void _bus_dmatag_destroy(bus_dma_tag_t tag)

that allow a (normally broken/limited) device to restrict the bus address
range it can talk to.  this is used by bce(4) to limit DMA addresses to
1GB range, the maximum the chip can address.

all this is from Yorick Hardy <yhardy@uj.ac.za> with input from several
people on tech-kern.

XXX: bus_dma(9) needs an update still.
2007-02-21 20:41:23 +00:00
wiz
017d008f6d Fix debug format strings (found on amd64). 2007-02-21 15:42:07 +00:00
briggs
d298894138 Install sys/dev/bluetooth/btuart.h.
Descend into and build/install usr.sbin/btuartd.
Install etc/rc.d/btuartd.
2007-02-20 21:29:08 +00:00
kiyohara
10abd6f2e2 Supprot Bluetooth HCI UART (H4) driver and daemon. 2007-02-20 16:53:20 +00:00
matt
148790dc55 Fix tpyo. 2007-02-20 01:56:59 +00:00
macallan
562219389b update copyrights 2007-02-20 01:32:33 +00:00
macallan
f6a33e5a19 report power button events to sysmon 2007-02-20 01:27:25 +00:00
ad
a030fa3a9b The ACPI locks need to run at IPL_VM, since they can be taken from
interrupt handlers.
2007-02-19 22:32:52 +00:00
ad
1d4a085a4a Initialize acpi_interrupt_list_mtx in acpi_probe(). 2007-02-19 22:31:05 +00:00
bouyer
7054823d08 We have to bus_mapmap_load() after m_adj, otherwise the map will point at
the wrong place in the buffer. Fix an issue in the !sc->bge_rx_alignment_bug
case reported by Nicolas Joly.
While there remove a duplicate m_adj(), and add a missing bus_dmamap_unload().
2007-02-19 18:44:05 +00:00
xtraeme
c661f78440 AcpiOsDelete{Lock,Semaphore}: don't forget to destroy the mutex,
otherwise mutex_init might be called multiple times.

Discussed with Andrew hours ago.
2007-02-19 12:29:24 +00:00
ad
3a91cc8a3b Back out previous for now. There isn't currently an easy way to set up
shared state before these get attached or used.

From xtraeme@.
2007-02-19 06:08:37 +00:00
rumble
334307e192 Extract mac addresses on Phobos G100 boards. 2007-02-19 04:35:21 +00:00
xtraeme
fe10a8bc01 Forgot to initialize the mutex. 2007-02-19 00:56:05 +00:00
xtraeme
9ece13126c Replace ACPI_INTERRUPT_LIST_{LOCK,UNLOCK} mutex_{enter,exit} 2007-02-19 00:41:48 +00:00
xtraeme
0bb6833f55 Replace SYSMON_ENVSYS_{LOCK,UNLOCK} with mutex_{enter,exit}. 2007-02-19 00:36:12 +00:00