summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2008-11-28Don't select an endpoint with a larger packet size than the maximum forjmcneill
the current video stream.
2008-11-28Modified uvideo_stream_init_desc to correctly calculate max packet size for ↵jmorse
high speed endpoints.
2008-11-28Fixed high-speed isoc USB transfers, 64 bit capable host controllers have a ↵jmorse
different transfer descriptor to non-capable controllers. Added dma-sync of data buffer before scheduling transfers
2008-11-28Add wscons/vcons support for cg3.jdc
2008-11-26- ifconfig down supportjoerg
- ALTQ support
2008-11-25u_int32_t -> uint32_tmatt
2008-11-22Ouch - too many bits to fit in a byte.pgoyette
2008-11-22JEDEC has published the DDR3 SPD standard; update driver to match.pgoyette
Verified on my single DDR3 machine to still produce correct data.
2008-11-21PR/38735: Jonathan A. Kollasch: add the ability for cgd to be used on top of ↵christos
wedges
2008-11-20Read the chip revision from the Sbus register.jdc
2008-11-20regen for Corega CG-USBRS232Rjnemeth
2008-11-20PR/39971 - SHIMAOKA Shunsuke -- Recognize Corega CG-USBRS232R as ajnemeth
serial device.
2008-11-19Check that vnd is not NULL before using it, return ENXIO if it is.bouyer
Avoids a panic when vnconfig -uF is used on a busy vnd.
2008-11-18Regen.matt
2008-11-18Make more consistent (change capitalization) etc. Shrinks by 33 tokensmatt
and 300 bytes.
2008-11-18_KERNEL_OPTad
2008-11-18PR/39947 - Juan RP -- dbcool_detach implicitly calledjnemeth
sysmon_envsys_destroy() twice
2008-11-18SATA GEN3 speed is 6.0Gb/scegger
2008-11-18Fix Yukon EC Ultra cold power up issue.chris
For the EC Ultra it is necessary to update some extra registers during reset. Without doing so causes the system to hang at boot. The only workaround I found was to PXE boot before booting into NetBSD. This change is based on the code from FreeBSD's if_msk.c. Specifically the msk_phy_power function. Also add an splnet/splx across mii_tick. This matches most other network drivers. Change posted for review on 3rd Oct 2008 to tech-net. No feedback received.
2008-11-17Regen.matt
2008-11-17Store pcidevs in a more compact manner. Instead of many string with duplicatematt
words, store each word individual in a long string and then store offsets in the string to that word. This reduces the space needed by half.
2008-11-17On resum-from-RAM explicitly restore PCI link device state beforejoerg
reenabling interrupts. At least one BIOS doesn't do this automatically as reported by Christoph Egger.
2008-11-17If we return an error make sure we don't return a b_resid of 0; or thisbouyer
will trigger a KASSERT in physio_done(). Fix issue reported by Todd Kover on tech-kern@
2008-11-17Reduce code duplication: most PHY drivers call mii_phy_add_media()dyoung
when they attach to the device tree, so call pmf_device_register(9) once there instead of once in more than twenty drivers.
2008-11-16cpu_intr_p() doesn't account for software interrupts (e.g. callouts) sobouyer
we can't use it here. Rssurect ATACH_TH_RUN, backing out src/sys/dev/ata/ata.c 1.101 src/sys/dev/ata/ata_wdc.c 1.90 src/sys/dev/ata/atavar.h 1.77 src/sys/dev/ic/wdc.c 1.255 src/sys/dev/scsipi/atapi_wdc.c 1.108 Should fix kern/39927 and kern/39725.
2008-11-16Do not depend on physmem for pci_dma64_available(). On some systems (e.g. Xen,bouyer
or any system with non-contigous physical memory), physmem may not represent the hightest physical address available. Discussed on tech-kern@ some weeks ago.
2008-11-16For DDR3, the number of physical banks stored in the EEPROM needs to bepgoyette
incremented by 1.
2008-11-16Fix tyop in #ifdef TLDEBUG part.tsutsui
2008-11-13Actually declare the structures used in iwn_scan_hdr instead of usingblymn
pointer arithmetic to create the elements on the fly. Other changes to scan routine taken from FreeBSD driver.
2008-11-12Added missing #include <net/if_ether.h> for ether_ioctl().phx
2008-11-12Cache wpi firmware in memory, free it only on invalid content or whenjoerg
the last user is detached. This stops wpi from accessing the disk on resume.
2008-11-12Add support for Realtek ALC269 as found in Eee PC 1000HA.jmcneill
2008-11-12Remove LKMs and switch to the module framework, pass 1.ad
Proposed on tech-kern@.
2008-11-11Fix typo in previous, and wrap a panic with #ifdef DIAGNOSTICpgoyette
2008-11-11Initialize event's "previous sent state" based on the event monitor type,pgoyette
regardless of sensor type. Fixes spurious "device: normal state on 'sensor-name' messages (reported by ad@) which interfere with sysinst.
2008-11-10PR kern/39608: bge(4) constant freeze on BCM5906M:cegger
Correct DMA values. Patch from Karl Uwe Lockhoff via tech-kern.
2008-11-10Fix typo in fw name.joerg
2008-11-09Use agp_flush_cache() instead of wbinvd().bjs
2008-11-09Leave the task of displaying sensor states to envsys_sysmon() unless wepgoyette
are in debug mode.
2008-11-09Temp sensor should report a critical-overtemp condition (ENVSYS_SCRITOVER)pgoyette
not a simple critical (ENVSYS_SCRITICAL) condition.
2008-11-09PR/39885: Sébastien Bocahu: add R500 chips supportchristos
2008-11-08regen.christos
2008-11-08Support for Intel G35 as found on Asus P5E-VM HDMI motherboard fromchristos
Milos Negovanovic
2008-11-08To finish the device_t/softc split, convert some casts to structdyoung
auich_softc * to device_private() calls.
2008-11-07In wsdisplay_kbdholdscreen(), just return if sc->sc_focus is NULL.he
There is apparently no guarantee sc->sc_focus will be non-NULL, as proved by a crash I experienced earlier today (admittedly on 4.0.1).
2008-11-07Match image name with upstream distfiles.joerg
2008-11-07*** Summary ***dyoung
When a link-layer address changes (e.g., ifconfig ex0 link 02:de:ad:be:ef:02 active), send a gratuitous ARP and/or a Neighbor Advertisement to update the network-/link-layer address bindings on our LAN peers. Refuse a change of ethernet address to the address 00:00:00:00:00:00 or to any multicast/broadcast address. (Thanks matt@.) Reorder ifnet ioctl operations so that driver ioctls may inherit the functions of their "class"---ether_ioctl(), fddi_ioctl(), et cetera---and the class ioctls may inherit from the generic ioctl, ifioctl_common(), but both driver- and class-ioctls may override the generic behavior. Make network drivers share more code. Distinguish a "factory" link-layer address from others for the purposes of both protecting that address from deletion and computing EUI64. Return consistent, appropriate error codes from network drivers. Improve readability. KNF. *** Details *** In if_attach(), always initialize the interface ioctl routine, ifnet->if_ioctl, if the driver has not already initialized it. Delete if_ioctl == NULL tests everywhere else, because it cannot happen. In the ioctl routines of network interfaces, inherit common ioctl behaviors by calling either ifioctl_common() or whichever ioctl routine is appropriate for the class of interface---e.g., ether_ioctl() for ethernets. Stop (ab)using SIOCSIFADDR and start to use SIOCINITIFADDR. In the user->kernel interface, SIOCSIFADDR's argument was an ifreq, but on the protocol->ifnet interface, SIOCSIFADDR's argument was an ifaddr. That was confusing, and it would work against me as I make it possible for a network interface to overload most ioctls. On the protocol->ifnet interface, replace SIOCSIFADDR with SIOCINITIFADDR. In ifioctl(), return EPERM if userland tries to invoke SIOCINITIFADDR. In ifioctl(), give the interface the first shot at handling most interface ioctls, and give the protocol the second shot, instead of the other way around. Finally, let compatibility code (COMPAT_OSOCK) take a shot. Pull device initialization out of switch statements under SIOCINITIFADDR. For example, pull ..._init() out of any switch statement that looks like this: switch (...->sa_family) { case ...: ..._init(); ... break; ... default: ..._init(); ... break; } Rewrite many if-else clauses that handle all permutations of IFF_UP and IFF_RUNNING to use a switch statement, switch (x & (IFF_UP|IFF_RUNNING)) { case 0: ... break; case IFF_RUNNING: ... break; case IFF_UP: ... break; case IFF_UP|IFF_RUNNING: ... break; } unifdef lots of code containing #ifdef FreeBSD, #ifdef NetBSD, and #ifdef SIOCSIFMTU, especially in fwip(4) and in ndis(4). In ipw(4), remove an if_set_sadl() call that is out of place. In nfe(4), reuse the jumbo MTU logic in ether_ioctl(). Let ethernets register a callback for setting h/w state such as promiscuous mode and the multicast filter in accord with a change in the if_flags: ether_set_ifflags_cb() registers a callback that returns ENETRESET if the caller should reset the ethernet by calling if_init(), 0 on success, != 0 on failure. Pull common code from ex(4), gem(4), nfe(4), sip(4), tlp(4), vge(4) into ether_ioctl(), and register if_flags callbacks for those drivers. Return ENOTTY instead of EINVAL for inappropriate ioctls. In zyd(4), use ENXIO instead of ENOTTY to indicate that the device is not any longer attached. Add to if_set_sadl() a boolean 'factory' argument that indicates whether a link-layer address was assigned by the factory or some other source. In a comment, recommend using the factory address for generating an EUI64, and update in6_get_hw_ifid() to prefer a factory address to any other link-layer address. Add a routing message, RTM_LLINFO_UPD, that tells protocols to update the binding of network-layer addresses to link-layer addresses. Implement this message in IPv4 and IPv6 by sending a gratuitous ARP or a neighbor advertisement, respectively. Generate RTM_LLINFO_UPD messages on a change of an interface's link-layer address. In ether_ioctl(), do not let SIOCALIFADDR set a link-layer address that is broadcast/multicast or equal to 00:00:00:00:00:00. Make ether_ioctl() call ifioctl_common() to handle ioctls that it does not understand. In gif(4), initialize if_softc and use it, instead of assuming that the gif_softc and ifp overlap. Let ifioctl_common() handle SIOCGIFADDR. Sprinkle rtcache_invariants(), which checks on DIAGNOSTIC kernels that certain invariants on a struct route are satisfied. In agr(4), rewrite agr_ioctl_filter() to be a bit more explicit about the ioctls that we do not allow on an agr(4) member interface. bzero -> memset. Delete unnecessary casts to void *. Use sockaddr_in_init() and sockaddr_in6_init(). Compare pointers with NULL instead of "testing truth". Replace some instances of (type *)0 with NULL. Change some K&R prototypes to ANSI C, and join lines.
2008-11-06wrap lines. no functional change.cegger
2008-11-06Move init of essid to the attach code.blymn
2008-11-05fss_bs_thread: initialize b_error and b_resid.hannken
Before it was possible for fss reads to return bogus b_resid values leading to "delta > 0" panics from physio().