summaryrefslogtreecommitdiff
path: root/sys/arch/sgi
AgeCommit message (Collapse)Author
2008-11-28Eliminate the redundant bits of code for MTU and multicast handlingBrad Smith
from the individual drivers now that ether_ioctl() handles this. Shrinks the i386 kernels by.. RAMDISK - 2176 bytes RAMDISKB - 1504 bytes RAMDISKC - 736 bytes Tested by naddy@/okan@/sthen@/brad@/todd@/jmc@ and lots of users. Build tested on almost all archs by todd@/brad@ ok naddy@
2008-10-15Second pass of simple timeout_add -> timeout_add_sec conversionsBret Lambert
This should take care of the simpler ones (i.e., timeout values of integer multiples of hz). ok krw@, art@
2008-10-10- add and enable rum(4)Jasper Lievisse Adriaanse
committed over a rum(4) donated by Maxim Belooussov, thanks! ok jsing@
2008-10-02First step towards cleaning up the Ethernet driver ioctl handling.Brad Smith
Move calling ether_ioctl() from the top of the ioctl function, which at the moment does absolutely nothing, to the default switch case. Thus allowing drivers to define their own ioctl handlers and then falling back on ether_ioctl(). The only functional change this results in at the moment is having all Ethernet drivers returning the proper errno of ENOTTY instead of EINVAL/ENXIO when encountering unknown ioctl's. Shrinks the i386 kernels by.. RAMDISK - 1024 bytes RAMDISKB - 1120 bytes RAMDISKC - 832 bytes Tested by martin@/jsing@/todd@/brad@ Build tested on almost all archs by todd@/brad@ ok jsing@
2008-09-17Garbage collect unused variable from sys_rec structure.Joel Sing
ok miod@
2008-09-17Unbreak com@ioc probing.Joel Sing
ok miod@
2008-09-16- remove some unneeded headersJasper Lievisse Adriaanse
with and ok jsing@
2008-09-01Bring comment into line with reality. We use sgi label info but don'tKenneth R Westerback
create just partitions 'i' -> 'l'. jsing@ had noted same discord.
2008-09-01Allow sgi to spoof the native label. But don't spoof when justKenneth R Westerback
looking for the place to write the disklabel, i.e. partoffp != NULL. tested & ok jsing@
2008-08-28- enable uvideo on sgi, it's working for me with a quickcam e 3500 plusJasper Lievisse Adriaanse
ok mglocker@
2008-08-25- add a bunch of enabled usb devices that have been tested.Jasper Lievisse Adriaanse
together with the previous commits by jsing@, OpenBSD/sgi does USB now. ok jsing@ miod@
2008-08-25Make sgivol(8) use the device sector size for reads and writes. This allowsJoel Sing
us to use sgivol on devices which have a sector size != DEV_BSIZE, such as a CD drive. ok miod@ krw@
2008-08-25Add bus_space_read_raw_region_* and bus_space_write_raw_region_* bus spaceJoel Sing
accessors to OpenBSD/sgi. ok miod@
2008-08-25Add device majors for USB character devices in OpenBSD/sgi.Joel Sing
ok miod@ jasper@
2008-08-25Unbreak.Joel Sing
ok miod@
2008-08-20Add USER_PCICONF so that pcidump can work.Joel Sing
Prompted by jasper@ ok miod@
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