Commit Graph

6337 Commits

Author SHA1 Message Date
briggs bbc63cf490 Allocate enough space for the aac_pci_softc, not just the aac_softc. 2009-01-02 22:03:07 +00:00
jmcneill 63b42fed50 PR# port-i386/40284: add AMD Geode CS5536 audio driver; written by
SHIMIZU Ryo <ryo@nerv.org>
2008-12-28 15:16:24 +00:00
tsutsui ff822508cf Regen from pcidevs rev 1.971:
> Fix tyop in previous.
2008-12-27 10:36:09 +00:00
tsutsui 62631acb1a Fix tyop in previous. 2008-12-27 10:35:08 +00:00
jnemeth 5805e53b1d regen for et (Agere) driver 2008-12-27 09:05:22 +00:00
jnemeth 8cb5cf0f62 PR/39094 - Kaspar Brand -- Add et (Agere ET1310/ET1301) netowrk driver 2008-12-27 09:03:32 +00:00
blymn 215b203640 Pay more attention to the state of the RF kill switch, such as don't
bring the interface up when the RF is off.
2008-12-22 11:32:04 +00:00
nonaka 8025a0b1ce Add VT8237S Integrated SATA Controller support. 2008-12-21 16:27:57 +00:00
nonaka 0b52d4c69a Regen. 2008-12-21 16:25:28 +00:00
nonaka 77c888b6df Add VIA VT8237S Integrated SATA Controller ID. 2008-12-21 16:23:53 +00:00
cegger dcf705893e use M_ZERO on malloc() and remove subsequent bzero(). 2008-12-19 18:49:37 +00:00
cegger c04f959ef5 make this compile with AUDIO_DEBUG 2008-12-17 15:47:35 +00:00
cegger 8d3de7484b make this build with AZALIA_DEBUG 2008-12-17 15:35:17 +00:00
christos 9a5d3f2817 replace bitmask_snprintf(9) with snprintb(3) 2008-12-16 22:35:21 +00:00
christos 761540f260 regen 2008-12-16 19:55:22 +00:00
christos 85947fef5e add more intel iwn devices 2008-12-16 19:54:52 +00:00
jakllsch 26f9d336c3 In case the PCI command bits aren't already set, do so before performing
an access that requires them to be.  From KIYOHARA Takashi.
2008-12-16 02:46:47 +00:00
sketch 8be734c633 Fix PGTBL sizes. 2008-12-13 20:12:13 +00:00
alc 5d561f943e Sync ath(4) with the new HAL, mostly based on <jmcneill>'s patches.
Everything should be fine again !
2008-12-11 05:45:29 +00:00
christos 453b04f5be fix PGTBL size detection on the intel 965GM. From Anon Ymous. 2008-12-10 15:48:49 +00:00
dyoung ce732c2d14 Distinguish the NetMos NM9845 Quad UART chip from the NetMos NM9845
Quad UART + One Parallel chip.
2008-12-08 19:32:39 +00:00
tron e123b7f433 Force the nVidia nForce 630i MCP73 to attach to ahcisata(4) as well.
It would otherwise attach to pciide(4) and use PIO mode.

Patch submitted by Bernhard Moellemann in PR kern/40134.
2008-12-08 15:35:23 +00:00
alc 0976fc9588 Fix regression introducted by the previous commit.
i915 and G33 Intel chipset family need special handling when writing an entry
to the GTT.

reported by: <tnn> [0]
tested by: <tnn>

[0]: http://mail-index.netbsd.org/tech-x11/2008/12/03/msg000276.html
2008-12-04 19:07:35 +00:00
sketch 8f51fb3d31 Fix '||' vs '&&' mix-up from when ich9 support was added. Fixes nasty
EEPROM-trashing bug on ich8 and ich9 chipsets as described in

  http://mail-index.netbsd.org/current-users/2008/12/02/msg006435.html

caused by setting the wrong type of EEPROM.
2008-12-02 15:30:04 +00:00
christos 82b58f55f0 regen 2008-11-29 23:48:58 +00:00
christos 78b9002948 Add support for the Intel G45 AGP. From Arnaud Lacombe 2008-11-29 23:48:12 +00:00
joerg d54a83bf7a - ifconfig down support
- ALTQ support
2008-11-26 21:34:07 +00:00
matt 2c14b3c725 Regen. 2008-11-18 16:12:21 +00:00
matt b0c5679ab1 Make more consistent (change capitalization) etc. Shrinks by 33 tokens
and 300 bytes.
2008-11-18 16:12:03 +00:00
chris d1214474bc Fix Yukon EC Ultra cold power up issue.
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-18 09:30:43 +00:00
matt bcb2caec0b Regen. 2008-11-17 23:35:24 +00:00
matt eadd097264 Store pcidevs in a more compact manner. Instead of many string with duplicate
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-17 23:33:41 +00:00
bouyer 5c26c1f703 Do not depend on physmem for pci_dma64_available(). On some systems (e.g. Xen,
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-16 17:31:03 +00:00
tsutsui 2a3ae26e88 Fix tyop in #ifdef TLDEBUG part. 2008-11-16 02:11:29 +00:00
blymn a920095679 Actually declare the structures used in iwn_scan_hdr instead of using
pointer arithmetic to create the elements on the fly.

Other changes to scan routine taken from FreeBSD driver.
2008-11-13 12:04:09 +00:00
joerg 4c4dba8748 Cache wpi firmware in memory, free it only on invalid content or when
the last user is detached. This stops wpi from accessing the disk on
resume.
2008-11-12 18:23:08 +00:00
jmcneill d6b7340a23 Add support for Realtek ALC269 as found in Eee PC 1000HA. 2008-11-12 13:33:10 +00:00
ad 0efea177e3 Remove LKMs and switch to the module framework, pass 1.
Proposed on tech-kern@.
2008-11-12 12:35:50 +00:00
cegger e60c84c6c6 PR kern/39608: bge(4) constant freeze on BCM5906M:
Correct DMA values. Patch from Karl Uwe Lockhoff via tech-kern.
2008-11-10 22:50:18 +00:00
joerg 5787d39971 Fix typo in fw name. 2008-11-10 18:05:12 +00:00
bjs 8b2e3ec035 Use agp_flush_cache() instead of wbinvd(). 2008-11-09 14:26:14 +00:00
christos 4c2b1bf33a PR/39885: Sébastien Bocahu: add R500 chips support 2008-11-09 02:35:42 +00:00
christos 2688948f51 regen. 2008-11-08 17:27:15 +00:00
christos 71ede8ab96 Support for Intel G35 as found on Asus P5E-VM HDMI motherboard from
Milos Negovanovic
2008-11-08 17:26:28 +00:00
dyoung 8e791deb98 To finish the device_t/softc split, convert some casts to struct
auich_softc * to device_private() calls.
2008-11-08 00:26:35 +00:00
joerg 866b295da8 Match image name with upstream distfiles. 2008-11-07 14:58:27 +00:00
dyoung de87fe677d *** Summary ***
When a link-layer address changes (e.g., ifconfig ex0 link
02🇩🇪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-07 00:20:01 +00:00
blymn 3286a94bad Move init of essid to the attach code. 2008-11-06 12:03:43 +00:00
blymn 57e1492b11 * Disable aborting the scan for the moment - it causes a firmware error if
a scan was never initiated which breaks WEP and open wireless connections
* Make sure the ESSID is cleared.
2008-11-05 09:42:20 +00:00
reinoud 3a0f6cde46 Implement powersave for ixpide(4). Tested it on an Asus IXP250 with IGP.
It seems to sleep and awake fine now without errors or warnings.
2008-11-04 16:05:29 +00:00