History log of /haiku-fatelf/src/add-ons/kernel/drivers/disk/usb/usb_floppy/usb_disk.cpp
Revision Date Author Comments
# 1c3ccf8d 09-Dec-2012 Adrien Destugues <pulkomandy@gmail.com>

usb_floppy: handle B_GET_DEVICE_{NAME,SIZE}


# 258c1019 29-Dec-2011 Philippe Saint-Pierre <stpere@gmail.com>

usb_disk: avoid to use variables after having been free'd()

CID 10543


# cd4db9ee 17-Jul-2011 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Update usb-floppy icon with a fixed one by jstressman (tweaks the persective and overall look of the icon). Thanks !

Fixes #6677.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42443 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7c865cf9 12-Jun-2011 Michael Lotz <mmlr@mlotz.ch>

usb_floppy is for the most part a copy of usb_disk and should probably be merged
into it again (adding generic CBI support). It is so much of a copy even that it
still claimed to have the original 3 support descriptors while in fact it only
has one. Since the memory beyond that one support descriptor was probably just
zeros, making them complete wildcards usb_support_descriptor wise, this lead to
every single USB device being handed to the usb_floppy device added hook.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42145 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 355a38a0 28-Aug-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Fix gcc4 build as well as logic error : the driver needlessly scanned some devices.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38413 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 18900042 28-Aug-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Use defines for the SCSI commands instead of the numeric opcode directly
* Colorize the trace output for easier syslog reading
* Add usb_floppy to the default image
* disable error tracing


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38411 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 68f54d50 27-Aug-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Better error handling : do not enter an endless loop in cases of errors, but report them to the caller.
Note this leads to KDL if there is a write error, so it may not be the best way for a floppy...

This allows the driver to uninitialize properly when all devices are unplugged, which in turns permits updating the driver without rebooting to unload it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38410 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0a240bce 27-Aug-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Replace icon for the usb_floppy devices.
The floppy icon is based on zumi's one. changes done :
* I made the floppy a bit thinner, it looked more like a zip100 cartridge
* I added an USB logo (or something that more or less looks like one) on the floppy label
* The logo only shows at big icon sizes since I couldn't get it looking good at small ones.

Feel free to improve.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38407 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a046d61f 27-Aug-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Write operation data direction is obviously host-to-device
* Write operation will always return an error, one needs to send request sense until the write is actually done.
This gets floppy writing working.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38406 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 027fabed 27-Aug-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Use block read and block write instead of regular read and write commands. Mounting the device read-only now works. Writing
is still not working.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38405 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 87bfae89 27-Aug-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

A floppy drive is a slow device, so we have to try many times before getting a result.
This gets read capaity working, the device shows up in drivesetup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38404 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 779ccf5c 27-Aug-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Properly initialize the drive before attempting to access it
* Ask the drive for its status after each command we send, or else it locks up
THis get us as far as trying to read the drive capacity, but this still fails for some reason.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38402 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 156a187d 26-Aug-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Fix test unit ready command (the device still stall, no idea why).
* Move the interrupt stuff inside the device structure
* Some cleanup, added some more tracing fordebug purposes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38399 a95241bf-73f2-0310-859d-f6bbb57e9c96


# bbdb5515 26-Aug-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Work In Progress (do not try yet!) driver for usb floppy drive.
This is loosely based on usb_disk, but uses a different protocol for sending the commands.
Refactoring is unfinished, so don't look at the style too muh, it will e fixed and cleaned up later.

Basic communication with the drive works (sending commands). Command themselves still mostly untested.
Command Blocks sent to the drive are most likely wrong and may erase your floppies or do any other weird things!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38379 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 258c1019f1dda6e1207f0770a6029382256cc6c3 29-Dec-2011 Philippe Saint-Pierre <stpere@gmail.com>

usb_disk: avoid to use variables after having been free'd()

CID 10543


# cd4db9ee5d58099b7c7b38b180e7d4dc167b0f86 17-Jul-2011 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Update usb-floppy icon with a fixed one by jstressman (tweaks the persective and overall look of the icon). Thanks !

Fixes #6677.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42443 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7c865cf94d93b0e277cf4a3c101b83980bb7dcec 12-Jun-2011 Michael Lotz <mmlr@mlotz.ch>

usb_floppy is for the most part a copy of usb_disk and should probably be merged
into it again (adding generic CBI support). It is so much of a copy even that it
still claimed to have the original 3 support descriptors while in fact it only
has one. Since the memory beyond that one support descriptor was probably just
zeros, making them complete wildcards usb_support_descriptor wise, this lead to
every single USB device being handed to the usb_floppy device added hook.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42145 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 355a38a0987144473d57257beb5dd9cbe90116ce 28-Aug-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Fix gcc4 build as well as logic error : the driver needlessly scanned some devices.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38413 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 18900042ce721c1eea186c077df418dd718e97c8 28-Aug-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Use defines for the SCSI commands instead of the numeric opcode directly
* Colorize the trace output for easier syslog reading
* Add usb_floppy to the default image
* disable error tracing


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38411 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 68f54d50f2ec328298864827977d3b6590af4653 27-Aug-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Better error handling : do not enter an endless loop in cases of errors, but report them to the caller.
Note this leads to KDL if there is a write error, so it may not be the best way for a floppy...

This allows the driver to uninitialize properly when all devices are unplugged, which in turns permits updating the driver without rebooting to unload it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38410 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0a240bcefecb3a145553cbae4fce2ff25794cbea 27-Aug-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Replace icon for the usb_floppy devices.
The floppy icon is based on zumi's one. changes done :
* I made the floppy a bit thinner, it looked more like a zip100 cartridge
* I added an USB logo (or something that more or less looks like one) on the floppy label
* The logo only shows at big icon sizes since I couldn't get it looking good at small ones.

Feel free to improve.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38407 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a046d61f81ea739a441650fcd79f027de11337cb 27-Aug-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Write operation data direction is obviously host-to-device
* Write operation will always return an error, one needs to send request sense until the write is actually done.
This gets floppy writing working.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38406 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 027fabed60d9f144e36d2dffc37720963b2959ea 27-Aug-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Use block read and block write instead of regular read and write commands. Mounting the device read-only now works. Writing
is still not working.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38405 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 87bfae898735fea21f213d91e5972e2f3cd210a2 27-Aug-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

A floppy drive is a slow device, so we have to try many times before getting a result.
This gets read capaity working, the device shows up in drivesetup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38404 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 779ccf5c6d34d3a8e9b76ec7bc9697ea6fe512ca 27-Aug-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Properly initialize the drive before attempting to access it
* Ask the drive for its status after each command we send, or else it locks up
THis get us as far as trying to read the drive capacity, but this still fails for some reason.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38402 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 156a187d0dc7c0b2e865f7def0eff4ee7f3fb8d2 26-Aug-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Fix test unit ready command (the device still stall, no idea why).
* Move the interrupt stuff inside the device structure
* Some cleanup, added some more tracing fordebug purposes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38399 a95241bf-73f2-0310-859d-f6bbb57e9c96


# bbdb55154d32637eaf7e13dbf060a27867e92f33 26-Aug-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Work In Progress (do not try yet!) driver for usb floppy drive.
This is loosely based on usb_disk, but uses a different protocol for sending the commands.
Refactoring is unfinished, so don't look at the style too muh, it will e fixed and cleaned up later.

Basic communication with the drive works (sending commands). Command themselves still mostly untested.
Command Blocks sent to the drive are most likely wrong and may erase your floppies or do any other weird things!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38379 a95241bf-73f2-0310-859d-f6bbb57e9c96