summaryrefslogtreecommitdiff
path: root/sys/dev/isa
AgeCommit message (Collapse)Author
2010-05-20New scsi code seems to be stable. Pluck previously identifiedKenneth R Westerback
low-hanging splbio/splx pairs that are no longer needed and see if this reveals any hidden scsi flaws. ok dlg@
2010-05-18dont let sys/ioctl.h imply that you get the ioctls in dkio.h. thisDavid Gwynne
gets rid of #include <sys/dkio.h> in sys/ioctl.h and adds #include <sys/dkio.h> to the places that actually want and use the disk ioctls. this became an issue when krw@'s X build failed when he was testing a change to dkio.h. tested by krw@ help from and ok miod@
2010-04-28s/i386/__i386__/, no binary change.Mark Kettenis
2010-04-23Recycle unused disklabel fields in order to create a disklabel uniqueJoel Sing
identifier, allowing the disk to be identified without relying on the device name. ok deraadt@ krw@ beck@ marco@ todd@
2010-04-20for some systems we need to try harder; from Mikko TolmunenTheo de Raadt
2010-04-03instead of returning EINVAL if an unsupported sample rate wasJacob Meuser
requested, just use a supported sample rate. makes paramter negotiation much easier. problem noted and patch tested on several sb(4) devices by J.C Roberts, thanks.
2010-03-28put the iosize next to the register definitionsTheo de Raadt
2010-03-28Driver for microguru sensor microcontroller found on ABIT motherboards.Theo de Raadt
Driver written by Mikko Tolmunen <oskari@sefirosu.org>
2010-03-27aria(4) is an audio driver, but hasn't been compatible with audio(9)Jacob Meuser
for a long time (if ever?), so send it to the Attic. "with prejudice" miod@; GENERIC reminder from kettenis@
2010-03-23Change the scsi_cmd function member of scsi_adapter from int toKenneth R Westerback
void. Use XS_NO_CCB error in the scsi command (xs) to report the NO_CCB condition. Eliminates all SUCCESSFULLY_QUEUED and COMPLETE confusion and untangles the midlayer from the adapter a bit more. Eyes and some fixes by miod@ There may be some compile issues on little used (i.e. I don't have any) drivers but the change is mechanical and thus easy to remedy. ok dlg@
2010-02-16Use i2c_addr_t as the type for the init_xfer function because thisMichael Knudsen
is what the function pointer type uses. ok grange
2010-01-10A couple of missed ITSDONE setting before scsi_done().Kenneth R Westerback
seagate/trm/aha1742 were the only drivers paranoid enough to check ITSDONE on getting the xs to execute. And optimistic enough to think simply restting the flag would be a good thing. Have them chill out like everyone else, reducing ITSDONE noise some more.
2010-01-10Set ITSDONE in scsi_done() and zap trivial instances of setting itKenneth R Westerback
in the drivers just before calling scsi_done(). ok dlg@ beck@
2009-12-15Correct define.Federico G. Schwindt
From Simon Perreault <simon dot perreault at viagenie dot ca> via tech@
2009-12-04ansify.Jasper Lievisse Adriaanse
ok md5@
2009-11-22Bring last drivers fully into the NO_CCB world by replacingKenneth R Westerback
TRY_AGAIN_LATER uses with equivalent NO_CCB. Eliminates confusion between the two as was always intended. buf I/O's that can't be started get pushed back onto the front of the queue and retried. Others get sent back to originator as failures. No more epi-cycle looping inside the SCSI midlayer hoping the problem goes away. Various testers, no objection from miod@ as vs(4) was tested by nick@.
2009-10-31Make sure the descriptor is writable for some operations.Federico G. Schwindt
Pointed out and ok by miod@.
2009-10-13Connect pcppi bell to ukbd, so that x86 systems with usb console keyboardMiod Vallat
can cause beeps on console. Reported by Greg Jones on misc@
2009-09-24Make sure the scsi_xfer timeout always get initialized with timeout_set(),Miod Vallat
since the scsi_done() wrapper will timeout_del() unconditionnaly and the scsi midlayer no longer provides scsi_xfer with zeroed struct timeout. ok dlg@
2009-09-12Add DIOCSDINFO support to the three fd drivers. No change to existingKenneth R Westerback
behaviour.
2009-09-06Don't pass uninitialized stack memory to setdisklabel() as the 'old'Kenneth R Westerback
label. Use the existing label, since we now check and reuse some values in it. And that's what all other drivers do. Bonus: we don't need that label on the stack anymore. ok deraadt@
2009-09-05Change the wsdisplay_emulops return types from void to int; emulops will nowMiod Vallat
return zero on success and nonzero on failure. This commit only performs mechanical changes for the existing emulops to always return zero.
2009-09-05scsi_done before COMPLETE.David Gwynne
2009-08-26directly calling Debugger() is bad. turn these printf();Debugger(); seriesJasper Lievisse Adriaanse
into panic()'s. ok deraadt@ jsing@
2009-08-24- fix format strings for values that are daddr64_tJasper Lievisse Adriaanse
ok otto@, agreed by deraadt@
2009-08-24- remove double \n in panic stringJasper Lievisse Adriaanse
2009-08-23- turn a printf(), which predated a panic()-function that could take ↵Jasper Lievisse Adriaanse
printf-like arguments, into panic() and remove call to Debugger() hint and ok deraadt@
2009-08-22There is no schsio_print() so get rid of the prototype.Michael Knudsen
2009-08-13Replace the error strings that were being passed around with much simplerTheo de Raadt
errnos. Note that the error strings are being ignored, since we long ago decided to not spam the console, and there is no other nice way to use the errors (without changing the ioctls to pass it back) The errno is now useful, since we can pass b_error from failing IO up, and the drive can decide how to use that ok miod
2009-08-12Backing store for ega and vga virtual console is not allocated until theMiod Vallat
second vc is created. However, it was allocated using the geometry of the second vc to allocate backing store for the first. Be sure to use the proper values in case geometries differ.
2009-08-10This does not need a shutdown function either (though the equilevantTheo de Raadt
to stop is not called because the ioctl function is a masterpiece)
2009-08-09Make this compile when SEA_ASSEMBLER is not defined.Jonathan Gray
2009-08-05timeout_add -> timeout_add_msecBret Lambert
ok krw@
2009-07-31remove unused variable definition; unbreaks kernel build.Stuart Henderson
"do it" marco@
2009-07-31timeout_add -> timeout_add_msecBret Lambert
ok jakemsr@
2009-07-23What gets allocated with bus_space_map() needs to be released withMiod Vallat
bus_space_unmap(), not bus_space_free(). Fortunately this file is only used on i386 where bus_space_free() simply invokes bus_space_unmap().
2009-06-21fix rcs ids. ok sthen@Martynas Venckus
2009-06-02Fix some minor format string problems found in a maze of false positivesTheo de Raadt
provided by Parfait ok oga
2009-06-02Cope with logical device numbers gaps, this fixes out-of-bounds accessAlexander Yurchenko
in an array. Problem found and ok deraadt@.
2009-05-24make sure the array of chars we pass aps_do_io() in aps_match() isJonathan Gray
unsigned, like all the other callers of aps_do_io in aps do.
2009-05-23Remove redefinition of ETHER_ADDR_LEN.Jonathan Gray
2009-05-07KNFMichael Knudsen
2009-04-27Whitespace KNF.Michael Knudsen
2009-04-21Switch aps(4) to use timeout_add_msec() instead of timeout_add() with aMichael Knudsen
calculation of ticks. Saves 26 bytes. ok oga `fine' deraadt
2009-04-17schsio_probe() reads the chip id to find out if we should attach or not.Michael Knudsen
schsio_attach() then later reads the chip id to print which device we found. I noticed that isa_attach_args has a field called ia_aux which can be used for driver specific stuff, so stuff the device id in there so we don't need to get the value from the chip again during attach.
2009-04-16Change some parameter types from int to u_int8_t since theMichael Knudsen
bus_space_.. API uses that.
2009-04-15Remove some unused symbolic constants.Michael Knudsen
2009-04-14Convert the waitok field of uvm_pglistalloc to "flags", more will be added soon.Owain Ainsworth
For the possibility of sleeping, the first two flags are UVM_PLA_WAITOK and UVM_PLA_NOWAIT. It is an error not to show intention, so assert that one of the two is provided. Switch over every caller in the tree to using the appropriate flag. ok art@, ariane@
2009-03-30Support for more chipset versions, written by Ian LindsayTheo de Raadt
2009-03-29make various strings ("can't map mem space" and similar) more consistentStuart Henderson
between instances, saving space in the kernel. feedback from many (some incorporated, some left for future work). ok deraadt, kettenis, "why not" miod.