summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2010-03-07Allow iockbc(4) and odysseey(4) to act as console devices and attach early;Miod Vallat
this gives us working glass console on Fuel, as well as on Octane systems with Odyssey graphics. Joint work with jsing@
2010-03-07On Origin-like systems, get glass console information (if any) from theMiod Vallat
fake ARCBios component structures associated to the KL configuration. The ARCBios data tells us if the device is the output console, and the KL component data tells us its node and widget numbers.
2010-03-07Add an MD interface for PCI drivers to be able to retrieve the node and widgetMiod Vallat
number the PCI bus they are on is connected to. Will be used shortly to help the console device selection logic.
2010-03-07Correct layout of arc_config{,64} and order of items in enum arc_config_type.Miod Vallat
ok deraadt@
2010-03-07Better battery % computation; ok otto@Miod Vallat
2010-03-07back out strict splassert semantics from 1.103; it breaks some thingsTheo de Raadt
like bigmem (disabled by default), sppp (ask wilfried about "splassert: if_up/down: want 5 have 7")
2010-03-06Fix typos.Joel Sing
2010-03-06remove the (now inaccurate) note about not being able to runJason McIntyre
installboot on a mounted partition; from J.C. Roberts
2010-03-04has been no -r flag for a few years; J.C. RobertsTheo de Raadt
2010-03-04Introduce odyssey(4), a driver for the SGI VPro (aka Odyssey) graphicsJoel Sing
card, which can be found in Octane, Octane2, Fuel, Tezro and Onyx systems. ok miod@
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-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