commit | cd891f1b587c50ed189e84758073084884e23a2b | [log] [tgz] |
---|---|---|
author | Kevin O'Connor <kevin@koconnor.net> | Wed Dec 11 18:32:12 2013 -0500 |
committer | Kevin O'Connor <kevin@koconnor.net> | Thu Dec 12 23:14:19 2013 -0500 |
tree | e8d4999dd79d8c582e27eace01684cc14e176a37 | |
parent | f5beab400d264b205961bcef54ef8afc656d5498 [diff] |
floppy: Encode command and flags into single value in floppy pio code. Eliminate struct floppy_pio_s and change floppy_pio() to take the command type and parameters in a single encoded value. This makes the code similar to the ps2port.c pio code. It also reduces some of the boilerplate code in the callers of floppy_pio(). Also, collapse pairs of floppy_select_drive() and floppy_pio() calls into new call floppy_drive_pio(). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>