summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2007-02-27previous commit ppc machines. has miod been reading tech-kern too much,Theo de Raadt
and is he trying to emulate them?
2007-02-26exclude control data from the number of bytes returned by FIONREAD ioctl()Kurt Miller
by adding a sb_datacc count to sockbuf that counts data excluding MT_CONTROL and MT_SONAME mbuf types. w/help from deraadt@. okay deraadt@ claudio@
2007-02-26because sparc has variable pagesize, ctob() varies between machines, and weTheo de Raadt
need uvm/uvm_extern.h to get at uvmexp. oops.
2007-02-26An ethernet driver works much better if you program the Tx descriptor ringMark Kettenis
size in the right bits of the appropriate register.
2007-02-26Zero rval[1] in setregs.Miod Vallat
2007-02-26Fix Rx FIFO constants. From brad@Mark Kettenis
2007-02-26m_dup1() copies the packet header and allocates the mbuf cluster in theClaudio Jeker
wrong order. M_DUP_PKTHDR needs to be called with an empty mbuf. Allocating an mbuf cluster beforehand is not allowed as the resulting mbuf is no longer considered empty (part of the header is initialized). The correct order is to allocate an mbuf via MGETHDR(), copy the packet header and as last step allocate the cluster. Issue found by JINMEI Tatuya. OK canacar@ deraadt@ mglocker@ additional input itojun@
2007-02-26FPU disabled bit on SH4 is not a ``must be zero'' bit, but userland shall notMiod Vallat
be allowed to fiddle with it anyway.
2007-02-26Fix spurious right brace in some decoders, and always print the hex value forMiod Vallat
unrecognized opcodes.
2007-02-26Fix typo, allowing this to compile again. Committed over cdcef0Chris Kuethe
ok millert
2007-02-26Finish bcw_radio_default_radio_attenuation().Marcus Glocker
2007-02-26Make the buffer size more reasonable, drop packets that dont fit in buffer.Dale Rahn
2007-02-26As we have the PCI softc data now, replace the fake if's with real ones.Marcus Glocker
Add some more debug info.
2007-02-26Some KNF.Marcus Glocker
2007-02-26Remove PCI powerhooks, bcw_pci_enable() and bcw_pci_disable().Marcus Glocker
2007-02-26We need to save some PCI infos in our softc struct for further decisionsMarcus Glocker
in the driver code.
2007-02-26Don't enforce RLIMIT_FSIZE on vnd(4) I/O operations, okay deraadt@Pedro Martelletto
2007-02-26This fixes the function names printed in the panic strings so thatTodd T. Fries
the correct function names are being used, this is msk(4), not sk(4). from brad@
2007-02-26Revert a portion of rev 1.21, via-cuda behaves exactly opposite of via-pmu,Gordon Willem Klok
if we attempt to clear the wake on ac loss bit just before shutting down it yo-yo's found by claudio@, tested by drahn@ on early imac, and myself on a 9600. ok drahn@
2007-02-25Add cas(4). Ad a few missing comments while there.Mark Kettenis
stolen from deraadt@
2007-02-25Make receiving packets work. Driver works well enough to do the commit over.Mark Kettenis
2007-02-25Make integer wrap checks the same for mmap, munmap, msync, etcTodd C. Miller
by factoring most of the checks into a macro. OK otto@
2007-02-25Disable acceleration by default; set device flags to a nonzero value toMiod Vallat
enable.
2007-02-25Power on/off cardbus socket at attach/detach time. Makes firmware uploadMarcus Glocker
work on my BCM4318 cardbus device now.
2007-02-25No need to fillup chip_rev here.Marcus Glocker
2007-02-25Calculate number of cores correctly. This is done based on the commonMarcus Glocker
core revision. Now my BCM4318 and BCM4306 both get the right number of cores.
2007-02-25Adjust var name so cardbus attaches again.Marcus Glocker
2007-02-25dmesg should look like devN at busN locators: device infoTheo de Raadt
the locators are printed by the bus drivers, rest by the device's driver.
2007-02-25Change how we determin if were running on a new world versus old worldGordon Willem Klok
machine for the purposes of printing model information durring boot and the hw.vendor/product sysctls. Turns out the apple didnt use the same format in the early imacs as they did in the latter new world machines resulting in NULL strings as found by drahn@. In this case and all future cases where we dont understand the format the default is to print whats found in the name property without interpertation. ok drahn@
2007-02-25add missing USBD_FORCE_SHORT_XFER checks, put back some code I had for aDale Rahn
while but removed incorrectly, some minor cleanup.
2007-02-25Defines to make isr status more useable. Bit patterns for debug prints.Dale Rahn
2007-02-24Get correct chip revision and also get chip package.Marcus Glocker
2007-02-24move debug print into debug block.Dale Rahn
2007-02-24Add my copyright, since I took the skeleton driver and made it complete.Dale Rahn
More polishing, appears to be working fine without back-to-back transmits.
2007-02-24Add myself to copyright since I took the skeleton driver and made it complete.Dale Rahn
Work around a transmit hang problem by setting a delay on transmitting back-to-back packets. Count dropped packets as input errors. Abort pipe if a watchdog occurs to clean up state better.
2007-02-24Glue for cas(4).Mark Kettenis
2007-02-24Start of a driver for Sun Cassini gigabit ethernet interfaces. Driver canMark Kettenis
send packets but not receive any yet.
2007-02-24Remove unused B_DIRTY, B_PAGET, B_PGIN, B_TAPE and B_UAREA b_flags values.Miod Vallat
2007-02-24Fix value typos, sync radio vars with phy vars, add radio defaultMarcus Glocker
attenuation routine, add temporary debug printfs.
2007-02-23Belkin USB to LAN -> Belkin F5D5050Jonathan Gray
2007-02-23regenJonathan Gray
2007-02-23Belkin USB to LAN -> Belkin F5D5050Jonathan Gray
2007-02-23add missing copyright; ConstantineTheo de Raadt
2007-02-23Add bcw_phy_lo_g_state().Marcus Glocker
2007-02-23Another two missing htoleX() for big endian support. Still more missingClaudio Jeker
but now I'm able to receive packets on macppc. OK mglocker@
2007-02-23Print safari error log register if we get a safari interrupt.Mark Kettenis
2007-02-23Establish pci error interrupt after we're done fiddling with schizo's registersMark Kettenis
instead of when we're halfway through.
2007-02-23hide all the things userland should not see, so that this file can beTheo de Raadt
pulled into get at pcireg_t. otherwise it would hit nasty _KERNEL stuff; discussed with miod and dlg
2007-02-23if machine has more than 100MB of physmem, default the max table entriesTheo de Raadt
to 200,000 instead of the conservative 100,000; ok dhartmei beck tested by ckuethe
2007-02-23Add bcw_radio_freq_r3a_value() and complement bcw_phy_initg().Marcus Glocker