summaryrefslogtreecommitdiff
path: root/sys/arch/sgi
AgeCommit message (Collapse)Author
2008-08-08Admit b_blkno means block number; a block is DEV_BSIZE (a.k.a.Kenneth R Westerback
512) bytes; ffs is inextricably tied to using b_blkno and disklabel always uses sectorsize units. Thus use DEV_BSIZE units for all fields describing ffs filesystems and convert to/from sectors where required. This enables the creation and use of ffs filesystems on non-512 byte sectorsize devices. This diff allows i386 and sgi (the two test platforms) to find disklabels that are not on a sectorsize boundary. Same change to further archs coming. This is a no-op on 512-byte sectorsize devices. This work triggered by jsing@'s need to create ffs filesystems on sgi cdroms so we can create cdrom install media for sgi. sgi testing by jsing@ ok jsing@ pedro@ "looks sane" beck@ weingart@
2008-08-08Wrap long lines and remove useless comment.Joel Sing
2008-08-08Make sgivol use the sgilabel struct from machine/disklabel.h, rather thanJoel Sing
declaring another. ok miod@
2008-07-30wi@pci now works.Miod Vallat
2008-07-30Implement bus_space_{read,write}_raw_mult_[248] correctly, it needsMiod Vallat
endianness conversion on pci bridges. ok deraadt@ jsing@
2008-07-30Proper interrupt values for pci interrupt pins B to D, found in some IRIXMiod Vallat
developer documentation some time ago.
2008-07-28regenMiod Vallat
2008-07-28Put XBOW in the generated constants, not PCI...Miod Vallat
2008-07-21nam2blk[] needs a "vnd" entry for some things (like softraid)Todd T. Fries
ok marco@ no objection miod@ need this for regress djm@ no objection krw@
2008-07-20Nuke unused readbsdlabel() function.Kenneth R Westerback
ok jsing@
2008-07-20Use NULL instead of 0 for pointer parameters.Kenneth R Westerback
ok jsing@
2008-07-16Now that uvm_pglistalloc() does not lose on large memory gaps, do notMiod Vallat
restrict the memory allocation range in _dmamem_alloc().
2008-07-01Enable FFS2 on most of the larger RAMDISK media.Brad Smith
ok deraadt@
2008-06-27add bio & bioctlTodd T. Fries
ok deraadt@
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
2008-06-14Mask the upper 56 bits of the rx ports when reading them, pckbd_input() willMiod Vallat
rely on this very soon.
2008-06-12Enable /dev/video* for all USB capable archs. MAKEDEV bits will followMarcus Glocker
shortly. OK todd@
2008-06-12Bring biomem diff back into the tree after the nfs_bio.c fix went in.Theo de Raadt
ok thib beck art
2008-06-11back out biomem diff since it is not right yet. Doing very largeTheo de Raadt
file copies to nfsv2 causes the system to eventually peg the console. On the console ^T indicates that the load is increasing rapidly, ddb indicates many calls to getbuf, there is some very slow nfs traffic making none (or extremely slow) progress. Eventually some machines seize up entirely.
2008-06-10Fix buffer cache pending read statistics by ensuring we can identifyBob Beck
biowait() reads that do *not* come from the buffer cache - we use the B_RAW flag to identify these at art's suggestion - since it makes sense and the flag was not being used. this just flags all these buffers with B_RAW - biodone already ignores returned buffers marked B_RAW. ok art@
2008-06-08alpha/conf/RAMDISKTheo de Raadt
2008-05-20Change the OpenBSD/sgi boot loader so that we use libsa loadfile(), ratherJoel Sing
than rolling our own load functions. tested jasper@, feedback and ok miod@
2008-05-18Unbreak glass console on OpenBSD/sgi - if we're supposed to be using theJoel Sing
glass console set comconsaddr to zero so we don't switch to serial when com* attach. spotted by jasper@, ok miod@
2008-05-14Fix more chrtoblktbl[] sloppyness, and add proper block st nodes to *ppc andMiod Vallat
sgi.
2008-05-04Unpopulated CRIME memory banks (or logically empty due to CRIME mergingMiod Vallat
contiguous 64MB DIMMs in a single 128MB one) are not reported as memory at offset zero, but actually as duplicates of the first entry (which always matches real memory). If the DIMMs are set up in decreasing sizes, as recommanded by SGI, the first entry will be configured at offset zero, so the existing code would run fine. If, however, you order your DIMMs in a different order, the first entry might not be at offset zero, so the kernel will mess up its memory information, which will cause random effects from simply misreported memory sizes, to the inability to boot. Fix this by strengthening the check for an empty bank. Problem reported by Jason Bergstrom (bergie, bergie dot net), analysis and fix by me.
2008-05-04convert arm and mips64 platforms to ptoa/atopMartin Reindl
tested by maja@
2008-05-01Don't forget to bus_space_unmap() after probing for a com chip.Miod Vallat
2008-04-29Attempt to locate an ELF header and symbol table directly after the kernel.Joel Sing
If it exists assume that the boot loader has provided a pointer to the end of the symbol table. If it does not exist fall back to the previous behaviour and expect that pointers to the symbol table have been provided directly after the kernel. ok miod@
2008-04-24Remove variables that are no longer used to specify the serial console.Joel Sing
ok dlg@
2008-04-24Unbreak IP30 serial console.Joel Sing
ok dlg@
2008-04-24Cleanup serial console handling and remove some of the MD code from com.c.Joel Sing
Specify the serial configuration from within the MD code, rather than passing things via macros. This will allow other platforms to more readily change the serial console configuration. Committing this so it actually gets tested. ok dlg@
2008-04-21allow low level audio drivers to specify a default sample format,Jacob Meuser
instead of 8-bit mono mulaw @ 8kHz. this is just the infrastructure; no drivers are specifying a default yet. ok ratchov@, deanna@
2008-04-14typo in attachmentTheo de Raadt
2008-04-12Compile kernels with -Wvariable-decl (except on arches with ipmi, for now).Miod Vallat
2008-04-09Add new stub uvm_shutdown() and call it from the right place in MD boot()Theo de Raadt
2008-04-08Split the cdev makro for bpftun into two seperate definitions. tun(4) andClaudio Jeker
bpf(4) are different enough so that the split makes sense -- this is necessary to make bpf(4) cloneable. requested deraadt@, OK thib@
2008-04-07SGI 1-Wire Number-In-a-Can drivers. These are regular Dallas/Maxim append-onlyMiod Vallat
EEPROM, with knowledge of how SGI formats their contents. They are needed by IOC to figure out the Ethernet address of its Ethernet subdevice (yes, verily).
2008-04-07Simple com@ioc (with interrupt handling disabled until ioc interrupt code isMiod Vallat
written). Joint work with jsing@
2008-04-07Preliminary IOC3 multi-function chip driver, from jsing@ and I. CurrentlyMiod Vallat
missing a driver for the ethernet part, and interrupt handling is not written yet.
2008-04-07RegenMiod Vallat
2008-04-07A first cut at XBow bus support, very minimal, limited to a local bus only;Miod Vallat
HUB driver (for IP27) is a stub, and interrupt support is a shoot in the dark and will need some serious debugging until it is sane, but I want to reduce the weight of these diffs first. Based on a lot of tinkering and experiments, as well as knowledge extracted from the Linux source code.
2008-04-07Platform-specific bits for IP30 (Octane). Based on knowledge extracted fromMiod Vallat
Linux source code.
2008-04-07Allow for up to 32 memory segments.Miod Vallat
2008-04-07Split clock attachment in two parts: a timecounter attachment (at mainbus),Miod Vallat
and a time-of-day chip (wherever it gets found).
2008-04-07Since uncached virtual addresses will depend upon space identifiers on R1xkMiod Vallat
systems, switch to the PHYS_TO_UNCACHED macro to compute proper addresses. Not really necessary for the O2 which does not implement spaces, but can't hurt either.
2008-04-07Unclutter machdep.c by moving the IP32-specific initialization code to itsMiod Vallat
own file. While there, more dead beef removal in struct sys_rec.
2008-04-07Use CCA_CACHED as the default CCA for all cached mappings and addresses.Miod Vallat
2008-04-07In _dmamem_map(), be sure to convert the address from the device view toMiod Vallat
a real physical address in the single-segment short-circuit code.
2008-03-30nam2blk[] clearly must contain "rd" ... found by krwTheo de Raadt
2008-03-30Implement bus_space_*8 and bus_space_vaddr.Miod Vallat