Commit Graph

5843 Commits

Author SHA1 Message Date
nonaka 8fdb68d7ad Added RTS5227/RTL8402/RTL8411/RTL8411B support. 2014-10-29 14:24:09 +00:00
skrll c60b40e43c Typo in comment 2014-10-27 09:40:00 +00:00
joerg 480d5fce07 Typo 2014-10-26 20:51:54 +00:00
martin d1bd22e812 Greatly simplify ioctl handling by fully relying on ether_ioctl and a
ifflags-change callback, together with a shadow copy of the last active
interface flags.
Fix ALLMULTI vs. PROMISC handling.
Fix mac hash filter calculation by reversing the crc bits (pointed out
by Jared).
2014-10-26 17:39:16 +00:00
joerg 35bf2ce596 Fix grammar 2014-10-25 18:15:18 +00:00
joerg a1f0cbda36 Fix typo. Use format string. 2014-10-25 18:00:25 +00:00
jmcneill f8c640e714 multicast hash filter support 2014-10-21 00:01:01 +00:00
matt dad226824a Set M_HASFCS does the frame does include the FCS in the length. 2014-10-20 23:41:46 +00:00
jmcneill 231538d17a add $NetBSD$ to top of files 2014-10-20 20:10:05 +00:00
martin 89ceaad022 Cosmetics - block interrupts while enabling different interrupt sources. 2014-10-20 20:08:01 +00:00
martin 3caa32c32a Consistently set the RX descriptors controll word - do not disable RX
interrupt and set chain mode. Now it does not run off the end of the
ring after 512 packets any more.
2014-10-20 19:51:40 +00:00
martin 3ac954793d The RXINT bit is a RX interrupt DISABLE bit. 2014-10-20 19:49:34 +00:00
martin 3131c8606a Cleanup debug code a bit. 2014-10-20 19:36:03 +00:00
jmcneill d4b3eb1571 if we read an insane mac address from the chip, dont attach 2014-10-19 22:31:33 +00:00
jmcneill a0ef5e67a3 only set PR bit in frame filter if IFF_PROMISC is set, and set PM bit if IFF_ALLMULTI is set 2014-10-19 13:15:23 +00:00
jmcneill 72e2d70f15 fix inverted logic with AWIN_GMAC_MAC_CONF_MIISEL bit; my cubieboard2 can talk to the network now! 2014-10-19 13:04:24 +00:00
martin 426c40ce98 Add more MAC filter setup, some DMA burst configuration (from jmcneill),
actually enable RX interrupts (spotted by jmcneill), add RX handling
code and debug code.
2014-10-19 11:45:01 +00:00
martin 6217b6d17d Add more comments 2014-10-19 11:37:17 +00:00
martin 3af79252f3 Add more bits and comments, parts from jmcneill. 2014-10-19 09:39:33 +00:00
martin 936e3162c1 Fix GMAC_MII_CLKMASK and add a few clk setup bits for it. 2014-10-18 12:43:25 +00:00
snj f0a7346d21 src is too big these days to tolerate superfluous apostrophes. It's
"its", people!
2014-10-18 08:33:23 +00:00
uwe ecaa2e9847 RealTek 8139C+ incorrectly identifies UDP checksum 0xffff as bad.
Force software recalculation of UDP checksum if bad checksum is
reported by the hardware.
2014-10-14 00:56:48 +00:00
martin 5158fc2465 Do not flush/restart the TX engine after queuing packets, but instead
keep it running (it will stall when out of descriptors), and inform it
about new descriptors available by writing to the TXPOLL request register.
Add more debugging code.
2014-10-13 09:07:26 +00:00
martin 8277fba821 When link status changes, update MAC configuration accordingly. 2014-10-13 08:24:52 +00:00
martin 2e0479a75c Add MAC config register bit definitions 2014-10-13 08:18:52 +00:00
christos 6cf29cdbef PR/49259: J. Lorec: Add support for Realtek 8111G chipset into re(4) 2014-10-10 17:41:05 +00:00
uebayasi ff1a9b99cc Move athn definitions. 2014-10-10 12:39:53 +00:00
martin bdbd5db812 More interrupt handling, more debug code, less magic numbers. 2014-10-08 18:24:21 +00:00
martin bad1510796 Fix a few bits, add more status bit definitions and some comments.
Remove driver specific preference definitions.
2014-10-08 18:23:32 +00:00
jmcneill 9514cd6ef0 for BIOCDISK_NOVOL, when setting bd_disknovol=false, also set bv_volid 2014-09-28 11:27:00 +00:00
jmcneill 9e5c35dafa for BIOCDISK_NOVOL, set bd_disknovol=true for any disk not associated with a volume 2014-09-28 11:20:22 +00:00
jmcneill 62fbaf2694 implement BIOCDISK_NOVOL 2014-09-27 21:01:51 +00:00
jmcneill f8ecd81b7b include vendor/product/rev info for volumes and their disks 2014-09-27 18:16:56 +00:00
jmcneill d4dcf6255f show "sd0" instead of "mpt0" for volume device name 2014-09-27 17:40:54 +00:00
jmcneill 8db39bfa6e add bio(4) support 2014-09-27 16:14:16 +00:00
martin 37ad3d63c0 Add (disabled) debug code.
Fix DMA descriptor link initialization.
2014-09-14 18:28:37 +00:00
martin 518bac4921 Cleanup and __BIT()ify 2014-09-14 11:00:52 +00:00
martin 6224bda15f Simplify device property handling by moving it into the core driver.
Overriding the MAC address now works again.
2014-09-11 06:56:05 +00:00
martin 1bae62cc2f Remove debug printf, now that MII status changes work 2014-09-09 10:06:47 +00:00
martin 612a2a4091 Make the MII clock variable and passed in from the frontend. 2014-09-09 10:04:19 +00:00
martin 8365891135 Fix MII setup and interrupt handling, from Robert Swindell. 2014-09-09 07:18:35 +00:00
martin 971dc1a095 Add work-in-progress driver for the Designware GMAC core, found on some
allwinner chips.
2014-09-08 14:24:32 +00:00
tsutsui 22f9ddb84f Add new arcofi(4) audio driver for NetBSD/hp300, ported from OpenBSD.
The arcofi(4) is a driver for the HP "Audio1" device
(Siemens PSB 2160 "ARCOFI" phone quality audio chip)
found on the HP9000/425e and HP9000/{705,710,745,747} models
(but only hp300 attachment is ported for now).
The chip supports 8-bit mono 8kHz U-law, A-law and
16-bit mono slinear_be formats.

The old HP9000/425e playing tunes with this new arcofi(4) audio driver
was also demonstrated at Open Source Conference 2014 Shimane.
2014-08-24 08:17:44 +00:00
christos 83a84c1bf3 over-initialize for the benefit of gcc 2014-08-21 15:43:35 +00:00
macallan f8303d815f #if 0 code to map the VGA BIOS
I've been unable to find any code that actually uses the mapping and we may
want to read the ROM from drm2.
If no users show up within a week or so I'll delete it.
2014-08-21 13:52:22 +00:00
christos 9171ceed70 revert previous; code checking tool is incorrect. Variables are not being
used in the non tbolt case.
2014-08-21 12:25:01 +00:00
riastradh 54cec2dc8c Fix leaks in oosiop_alloc_cb error branches, noted by maxv@.
While here, avoid a sketchy pointer cast that probably falls afoul of
strict aliasing rules.

Compile-tested only, with hppa.
2014-08-18 03:43:10 +00:00
tls ea6af427bd Merge tls-earlyentropy branch into HEAD. 2014-08-10 16:44:32 +00:00
wiz 87561671c1 defintion -> definition 2014-08-03 19:14:24 +00:00
dholland f9228f4225 Add d_discard to all struct cdevsw instances I could find.
All have been set to "nodiscard"; some should get a real implementation.
2014-07-25 08:10:31 +00:00