summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
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-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-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-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 never changing values (design capacity, design voltage) from sensorOtto Moerbeek
info; ok miod@
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-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-01fix serial console switching logic; ok miod@ jasper@Otto Moerbeek
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-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-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-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"
2010-02-28Basic apm(4), providing battery/power status and events. apm(4) is theOtto Moerbeek
generic part, ykbec(4) provides the device specific parts. Other battery/power status drivers can easily hook to adb(4). With help from miod@; ok matthieu@ miod@ jasper@
2010-02-27Remove ELF check. It is broken and since the PROM checks the loaded executableMark Kettenis
anyway, it's not worth fixing. Bump version number. ok deraadt@
2010-02-26when we build a vendor label for writing, clear the memory supplied by theTheo de Raadt
buffer cache first, so that all sorts of gibble doesn't end up on the disk. ok kettenis (for the sparc/sparc64 ones, at least)
2010-02-26crank version of the ofwboot, so we can tell which is whichTheo de Raadt
2010-02-26- remove double cvs id'sJasper Lievisse Adriaanse
2010-02-26- this device doesn't provide volume control, so stop whining about it. it's ↵Jasper Lievisse Adriaanse
just not there. ok jakemsr@ drahn@
2010-02-26Back out the last commit. Bizzarely, that extra l@ makes boong from CD fail!Theo de Raadt
Why this code, which must be executed, is not failing on disk is an utter mystery. More investigation needed.
2010-02-26Subdevice interrupt dispatcher for voyager(4) and ohci@voyager device, onlyMiod Vallat
allowed to match on old gdium artwork, as newer artwork have nothing connected to the usb pins, and this causes the empty bus probe to stall the boot a few seconds.
2010-02-24Update comments: the bit we flip in ISR4C on LS2F systems is not undocumented,Miod Vallat
but documentation for it only exists in Chinese. I still don't have the slightest idea why flipping it is important, but I am more confident flipping it now (-:
2010-02-24Minimal support for the ST7 chip found on Gdium Liberty, brings us batteryMiod Vallat
information and a few other things not yet wired.
2010-02-24Force write posting after changing GPIO pin status.Miod Vallat
2010-02-24Fix read/write logic to not rely upon M41T8X_TOD_START being zero.Miod Vallat
No functional change.
2010-02-24fix scaling of battery currentOtto Moerbeek
2010-02-24spacingTheo de Raadt
2010-02-23switch to simple indicators instead of playing string games; promptedOtto Moerbeek
by deraadt@
2010-02-23Restore MTRRs on resume.Mark Kettenis
ok oga@, pirofti@
2010-02-23ykbec(4), a driver to read fan, temperature and battery status usingOtto Moerbeek
the kb3310b embedded controller chip on the yeeloong. With help & ok miod@
2010-02-23Allow CPU->PCI access in a subset of the `high' bonito pci memory spaceMiod Vallat
(1GB@1GB); that's the best we can do on 2F due to the way the crossbar windows work. Necessary for upcoming Fuloong2F changes.
2010-02-23only match on Gdium; ok miod@Otto Moerbeek
2010-02-22It is bad to have HAVE_TIMECOUNTER but the clock/timer not configure aDale Rahn
timecounter.
2010-02-22Don't attempt to repost the video hardware. There are quite a few machinesMark Kettenis
where jumping to the "standard" video BIOS entry point locks up or even resets the machine. This will break resume on some other machines in the sense that the display on them will remain disabled. But hopefully those machines make it into a state where the kernel is running and we can fix that. ok deraadt@, marco@, mlarkin@
2010-02-22Use the logical or operator, not the bitwise operator inKevin Lo
the preprocessor.
2010-02-22- fix a few debug messages: disabled vs enabled mixup, missing \nJacob Meuser
- remove some '//' commented code ok ratchov, kettenis, edd
2010-02-21Read revision from the correct MSR; no functional change.Miod Vallat
2010-02-21Make sure we only request our peer to start processing descriptors if itMark Kettenis
isn't currently doing so. Fixes hangs on large data transfers.