summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2010-03-04utilize the fact that the softc is zero'd to simplify the initializationTheo de Raadt
sequences ok yuo
2010-03-03Change third parameter for urndis_decap() to be of type u_int32_t.Michael Knudsen
2010-03-03In urndis_ctrl_recv(), don't copy the received data to a newly allocatedMichael Knudsen
buffer of the exact response when we can just pass on the buffer. It's going to be released right away anyway.
2010-03-03Add athn(4).Mark Kettenis
2010-03-03Add support for the ipp_ind_ext_int[0] interrupt.Mark Kettenis
2010-03-03Enable urndis(4) everywhere that has USB enabled to get it tested.Michael Knudsen
Much prodding from deraadt.
2010-03-03Bring back cua code for sparc zs; lost in zs.c 1.36 on sparc and later forgottenMiod Vallat
about, and never implemented in sparc64 but changes are the same. ok deraadt@
2010-03-03supply apm(4) with infomation and events; ok miod@Otto Moerbeek
2010-03-03Correctly initialize the command frame in uyurex_write_value_request();Miod Vallat
ok yuo@
2010-03-03When I first started on urndis, I didn't realise that all values wereMichael Knudsen
u_int32_ts, so I made some typedefs for certain types. It's just pointless, so get rid of them. Jonathan and Fabien agree.
2010-03-03Remove XXX that's no longer valid.Michael Knudsen
From Jonathan Armani.
2010-03-03When allocating virtual space for bus_space_map, don't useOwain Ainsworth
uvm_km_alloc() (which allocates some virtual space and then $size_of_mapping pages which it then enters) *then* pmap_kenter the bus_space address that we wish to map, it's just a little bit stupid and a waste of memory. replace with uvm_km_valloc and ponies for everyone. ok drahn@
2010-03-03- add and enable bluetoothJasper Lievisse Adriaanse
ok miod@ otto@
2010-03-03Store ARCBios variables before machine specific setup is performed andJoel Sing
make console selection on a per machine basis. Whilst here store the keyboard layout ('keybd') and graphics state ('gfx') variables for future use. ok miod@
2010-03-03G41 works here too, so enable it for inteldrm.Owain Ainsworth
Thanks again to eric@ for testing this and bringing it to my attention.
2010-03-03Attach intagp on the G41 also.Owain Ainsworth
tested by eric@.
2010-03-02Fix support for Intel PRO/1000 QP 82575-based devices. This changes the wayDariusz Swiderski
PHY is recognized on 82575 based cards, now they are autodetected. Patch originaly form Atte Peltomaki, minor changes by me. ok by sthen@, claudio@
2010-03-02Add support for the Lemote Lynloong all-in-one PC (basically a Fuloong withoutMiod Vallat
the serial and IR ports, built into a mac-like case). At least PMON initializes the frame buffer in a much friendlier video mode (1360x768x16), but there is still no frame buffer acceleration yet. Tested by wvdputte.
2010-03-02Rename sc_sc to sc_softc.Michael Knudsen
2010-03-02Actually prefer PCIHI mappings to PCILO mappings, as the early console codeMiod Vallat
attempts to map resources without bothering to know their size. I should probably be more careful and do the BAR dance to get the BAR size, but then at this point we are reusing mappings set up by PMON, and it's ok to trust it. This would only have ever become an issue with a framebuffer larger than 64MB mapped at PCIHI with a PCILO mapping overlapping the first few 64MB anyway.
2010-03-02Remove some XXXs.Michael Knudsen
2010-03-02Zap unused struct.Michael Knudsen
2010-03-02Get rid of the code that deals with the interrupt pipe. The currentMichael Knudsen
code doesn't do anything at the moment, so no point in keeping it.
2010-03-02remove never changing values (design capacity, design voltage) from sensorOtto Moerbeek
info; ok miod@
2010-03-02- Add PCI id for the Smart Array P700m adapter.Stuart Henderson
- Rename one of the existing Smart Array entries (0x3237) to reflect its name as being a Smart Array E500 adapter. From FreeBSD - Add a Smart Array E200i PCI id missing from ciss_pci.c, although it has been in pcidevs for some time.
2010-03-02syncStuart Henderson
2010-03-02- Add PCI id for the Smart Array P700m adapter.Stuart Henderson
- Rename one of the existing Smart Array entries (0x3237) to reflect its name as being a Smart Array E500 adapter. From FreeBSD via Brad, ok jsg@
2010-03-02Use the battery controller bit that signals the battery almost emptyOtto Moerbeek
condition to determine crtical status for the sensor and apm. This makes the critical status correspond to the flashing red battery led. Furthermore, use ISSET macros and friends.
2010-03-01Add urndis(4), a driver for RNDIS Ethernet over USB.Michael Knudsen
It provides an Ethernet transport typically over EDGE or 3G on cellphones similar to what cdce(4) does on other phones. It is likely to work with most of HTC's recent and coming Android based phones but a bunch of other things (phones in particular) may use it. Started by me; brought to a working state by Jonathan Armani and Fabien Romano over the past week, with some input and additions from me. Tested on i386 and macppc by me (HTC Hero), amd64 by Jonathan and Fabien (HTC Hero), and by gilles@ (HTC Magic) on i386 or amd64. It still has a few kinks to work out, but it works well enough that I can commit this over my HTC Hero. `commit it!' deraadt
2010-03-01- properly spell 'exception' in commentsJasper Lievisse Adriaanse
- properly spell 'usefulness'
2010-03-01Set the user data of interrupt counters to the interrupt vector number usedMark Kettenis
for the interrupt. Makes the vmstat -i output similar to what we see on i386. ok deraadt@, krw@
2010-03-01shuffle slightly and add more splassert.David Gwynne
also protect the flushing of the deferred packet queue in clone_destroy with the right spls. noticed by claudio@
2010-03-01fix serial console switching logic; ok miod@ jasper@Otto Moerbeek
2010-03-01regenYojiro Uo
2010-03-01add uyurex(4) which is device driver for YUREX twitch counter device.Yojiro Uo
ok deraadt@
2010-03-01bring the splassert semantic from sparc64 to amd64. splassert in interruptDavid Gwynne
handlers now checks that the spl the isr was established at is the same as the one passed to splassert. this lets you check that isrs dont enter code that have insufficient protection if entered from process context. ok kettenis@
2010-02-28Attach the IR port as a second serial port on Fuloong 2F. Verified to attachMiod Vallat
and get interrupts by otto@, no further testing due to lack of IR devices.
2010-02-28Minimal frame buffer driver for the SiS 315 found on Lemote Fuloong systems.Miod Vallat
Currently unable to change video modes or provide any form of acceleration, so you are stuck in a 640x400x8 mode, but at least people scared of serial consoles will get a chance to use their Fuloongs now. Tested by otto@ (early developments) and jasper@ (final version)
2010-02-28In pci_mapreg_map(), do not blindly dereference a possible NULL pointerMiod Vallat
upon stumbling on a BAR which value is zero. Found the hard way by kurt@, ok kettenis@
2010-02-28A better bus_space_map() function for bonito PCI memory space, which noMiod Vallat
longers assumes all requested mappings fit in the three 64MB PCILO windows, but will instead check whether the requested mappings can be provided by PCILO regions or PCIHI regions (and on 2F-based systems, making sure we only use addresses which get properly routed from CPU to PCI within the 2F crossbar). This in turn requires early console code to abide the bus_space rules and get its resources from bus_space_map() rather than doing PCI BAR arithmetic by itself. No functional change on Lemote Yeeloong and Gdium Liberty; on Lemote Fuloong 2F this allows BAR set up in PCIHI space by PMON to be mapped by kernel code without having to compensate for the PCILO offset.
2010-02-28If no TOC header is read, report EIO. Even if the command finishedKenneth R Westerback
ok. Stops cdio(1) from printing bogus TOC info. ok marco@ beck@
2010-02-28Fix off-by-one in LOMlite hostname code.Mark Kettenis
2010-02-28enable mpiiJonathan Gray
ok marco deraadt
2010-02-28Pass L2 cache size in struct cpu_hwinfo, so that bootstrap of secondaryMiod Vallat
processors can display correct data. Now cpu1 on octane is correctly reported in dmesg.
2010-02-28Add a bell routine and let pckbd and ukbd use it; ok otto@Miod Vallat
2010-02-28Remove leftover debug printf in config_activate_children(); ok deraadtMiod Vallat
2010-02-28Add an explicit `delay constant' member to struct cpu_info, so that it canMiod Vallat
be decoupled from the nominal processor speed. While there, make sure delay() gets a proper delay constant if invoked before cpu0 attaches (how could I miss that when introducing struct cpu_hwinfo?!?)
2010-02-28implement hw.cpuspeed sysctl; ok miod@Otto Moerbeek
2010-02-28Bring battery life estimate when charging in line with most other apm(4)Otto Moerbeek
devices. Original code was inspired by/copied/stolen from the macppc apm(4), which has different semantics for battery life while charging.
2010-02-28don't guess info in the absense of a specific driver, just reportOtto Moerbeek
"we dont' know"