Revision tags: release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0 |
|
#
9fc9d84b |
| 23-Feb-2006 |
John Baldwin <jhb@FreeBSD.org> |
- Use callout_init_mtx() to initialize toffhandle callout using the fdc's mutex. - Don't use callout_drain() to stop the toffhandle callout while holding the fdc mutex (this could deadlock) in fu
- Use callout_init_mtx() to initialize toffhandle callout using the fdc's mutex. - Don't use callout_drain() to stop the toffhandle callout while holding the fdc mutex (this could deadlock) in functions called from softclock (callouts aren't allowed to do voluntary sleeps). Instead, use callout_stop(). Note that since we hold the associated mutex and are now using callout_init_mtx(), callout_stop() is just as effective as callout_drain(). (Though callout_drain() is still needed in detach to make sure softclock isn't contesting on our mutex before we destroy the mutex.) - Remove unused callout 'tohandle' from softc.
MFC after: 1 week
show more ...
|
Revision tags: release/6.0.0_cvs, release/6.0.0 |
|
#
1217bf6a |
| 31-Aug-2005 |
Craig Rodrigues <rodrigc@FreeBSD.org> |
FDOPT_NORETRY is an option, and must be compared with fd->options, not fd->flags.
PR: kern/85481 Submitted by: Lev Levinson <llevinson at inbox dot ru> MFC after: 1 day
|
Revision tags: release/5.4.0_cvs, release/5.4.0 |
|
#
62da7a2d |
| 28-Feb-2005 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Add missing ()
|
#
a7e943a4 |
| 28-Feb-2005 |
Pyun YongHyeon <yongari@FreeBSD.org> |
Add missing va_end() in fdc_cmd. 0 -> NULL in arguments of fdc_sense_int().
Reminded by: joerg
|
Revision tags: release/4.11.0_cvs, release/4.11.0 |
|
#
973bfe6c |
| 19-Jan-2005 |
Warner Losh <imp@FreeBSD.org> |
MFp4: overhaul of resource allocation
Rather than have a twisty maze of special case allocations, move instead to a data driven allocation. This should be the most robust way to cope with the resou
MFp4: overhaul of resource allocation
Rather than have a twisty maze of special case allocations, move instead to a data driven allocation. This should be the most robust way to cope with the resource problems that the multiplicity of ways of encoding 5 registers that have the misfortune of not being a power of 2 nor contiguous.
Also, make it less impossible that pccard will work. I've not been able to get my libretto floppy working, but it now fails later than before.
phk and I had similar ideas on this during the 5.3 release cycle, but it wasn't until recently that I could test more than one allocation scenario.
MFC After: 1 month (5.4 if possible, 5.5 if not)
show more ...
|
#
2221dbeb |
| 12-Dec-2004 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Pass the file->flags down to geom ioctl handlers.
Reject certain ioctls if write permission is not indicated.
Bump geom API version.
Reported by: Ruben de Groot <mail25@bzerk.org>
|
#
4b87c653 |
| 21-Nov-2004 |
Warner Losh <imp@FreeBSD.org> |
Properly wither the geom container on detach. This will allow one to then later reload fdc and not have duplicate fd devices in dev.
# Maybe this should be moved to a convenience function.
Reviewe
Properly wither the geom container on detach. This will allow one to then later reload fdc and not have duplicate fd devices in dev.
# Maybe this should be moved to a convenience function.
Reviewed by: phk
show more ...
|
#
f8353ede |
| 08-Nov-2004 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Add the last missing bits to make this unloadable: Two wakeups and calling of the GEOM modevent from the drivers modevent so we know the order things happen.
|
Revision tags: release/5.3.0_cvs, release/5.3.0 |
|
#
56f0c46a |
| 30-Oct-2004 |
Yoshihiro Takahashi <nyan@FreeBSD.org> |
Remove a duplicate code.
|
#
268315b6 |
| 29-Oct-2004 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Now that filesystems respect and understand GEOM access counts, refuse a write open of a read-only floppydisk.
|
#
1ef0fd82 |
| 22-Oct-2004 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Properly handle failure to allocate isadma bounce buffer
|
#
92666027 |
| 15-Oct-2004 |
Nate Lawson <njl@FreeBSD.org> |
Remove unused variable. Pointy hat candidate.
|
#
e5979322 |
| 15-Oct-2004 |
Nate Lawson <njl@FreeBSD.org> |
Remove local hacks to set flags now that the device probe does this for us. Tested on every device except sio_pci and the pc98 fd.c. Perhaps something similar should be done for the "disabled" hints
Remove local hacks to set flags now that the device probe does this for us. Tested on every device except sio_pci and the pc98 fd.c. Perhaps something similar should be done for the "disabled" hints also.
MFC after: 2 weeks
show more ...
|
#
8fe457d6 |
| 11-Oct-2004 |
Peter Edwards <peadar@FreeBSD.org> |
Fix off-by-one error in fd_native_types that results in a panic on boot for machines with 2.88M floppies.
Reviewed By: phk
|
#
3ba0c6b1 |
| 25-Sep-2004 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Use the floppy drive unit number to name the /dev entry, not the controller unit number.
Submitted by: Rostislav Krasny <rosti_bsd@yahoo.com>
|
#
360048a7 |
| 24-Sep-2004 |
Joerg Wunsch <joerg@FreeBSD.org> |
Few (trailing) whitespace and spelling fixes.
|
#
3fc95726 |
| 24-Sep-2004 |
Joerg Wunsch <joerg@FreeBSD.org> |
Protect fdc->flags within the worker thread, too.
Use kthread_exit() instead of falling through the end of the worker thread's main function. Since kthread_exit() wakeup(9)s everyone sleeping on th
Protect fdc->flags within the worker thread, too.
Use kthread_exit() instead of falling through the end of the worker thread's main function. Since kthread_exit() wakeup(9)s everyone sleeping on the thread handle, drop the superfluous wakeup() call.
show more ...
|
#
61909e4c |
| 24-Sep-2004 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Lock the flags field with the mutex.
Improve a number of comments.
|
#
02910eee |
| 23-Sep-2004 |
Joerg Wunsch <joerg@FreeBSD.org> |
Implement terminating the worker thread when the driver is about to be deregistered.
Not yet tested, since by now, GEOM doesn't want us to deregister. PHK wants to fix that RSN.
|
#
27df52f9 |
| 17-Sep-2004 |
Warner Losh <imp@FreeBSD.org> |
The long dead hand of the past has pushed forward useless bits in this driver. Trim its fingernails by removing some useless bits before fixing the 'thread not terminated on detach' problem.
o dmac
The long dead hand of the past has pushed forward useless bits in this driver. Trim its fingernails by removing some useless bits before fixing the 'thread not terminated on detach' problem.
o dmacnt is no longer used now that we allocate at attach time. Remove it from struct fdc_data. o ISPNP was only ever set, but never tested. It used to be used for the allocation routines to change how it allocated resources. Since that's no longer necessary, retire the flag. o ISPCMICA was only ever tested, but never set. GC it. This removes a special case in determining the drive type. The drive type is now set in fdc_pcmcia.c, so the hack isn't needed anymore. Sadly, this isn't tested with a Y-E Data pcmcia floppy drive because there are a number of other issues that preclude it from working. o Fix ifdef for reading from the rtc. I'm of the opinion that this ifdef should be moved into fdc_isa.c, but not today as ideally there'd be other fixes to the probing of children. So now we just read it on i386 ! pc98 (there's no #define for MACHINE_ARCH, just MACHINE, hence this slightly inelegant kludge) and amd64. The PC98 exclusion likely isn't meaningful since pc98 uses a different driver, but will be when merging of the pc98 floppy code into this driver is complete (this is the other reason I think this block of code belongs outside fdc.c).
All of these changes are safe to MT5.
show more ...
|
#
7964bd0c |
| 16-Sep-2004 |
Warner Losh <imp@FreeBSD.org> |
Reserve the DMA memory at attach time, rather than at use. While reserving it at use time is more miserly, low memory (< 16MB) evaporates quickly on many systems, so there may not be any suitable bu
Reserve the DMA memory at attach time, rather than at use. While reserving it at use time is more miserly, low memory (< 16MB) evaporates quickly on many systems, so there may not be any suitable buffers available. This specifically doesn't use the newer, fancier isa_dma_init to ease merging to 5.
Reviewed by: tegge, phk
show more ...
|
#
b593dd82 |
| 14-Sep-2004 |
Warner Losh <imp@FreeBSD.org> |
Use bus_setup_intr in preference to BUS_SETUP_INTR.
|
#
b4046cd7 |
| 14-Sep-2004 |
Warner Losh <imp@FreeBSD.org> |
Checkpoint the fdc resource changes:
o Allow for up to 3 resource I/O ranges to be given for the floppy controller, rather than just two that are allowed for now. o Make sure that we can work with
Checkpoint the fdc resource changes:
o Allow for up to 3 resource I/O ranges to be given for the floppy controller, rather than just two that are allowed for now. o Make sure that we can work with either a base address of 0x3f0 or 0x3f2. o Create new inline functions to access the YE DATA's unique BDCR register. o Update pccard attachment to add the fd device. o Do some minor style(9) polishing.
# I'm guessing that the fdc pccard attachment broke some time ago, since # there are a number of issues with it still.
show more ...
|
#
1d4b1bb7 |
| 27-Aug-2004 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Hide a printf under bootverbose.
|
#
ec200f23 |
| 21-Aug-2004 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Attempt to make the probe for hardware more specific.
|