Skip to content

Commit

Permalink
[SCSI] eata_pio cleanup and PCI fix
Browse files Browse the repository at this point in the history
This started as a PCI reference fixup but to do that I need to build it,
to build it I need to fix it and its full of 32bitisms and uglies.

It has been resurrected, I'm not sure if this is a thank you for the
work on the license stuff or punishment for some unknown misdeed however
8). I've also fixed a memory scribble in the init code.

One oddity - the changes from HZ * to constants are deliberate. Whoever
originally wrote the code (or cleaned it up) used HZ for a cycle timing
loop even though is not HZ related. I've put it back to the counts used
in the old days when the driver was most used.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
  • Loading branch information
Alan Cox authored and James Bottomley committed Sep 24, 2006
1 parent 2538363 commit 1a68d41
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 59 deletions.
1 change: 1 addition & 0 deletions drivers/scsi/eata_generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ typedef struct hstd {
__u8 moresupport; /* HBA supports MORE flag */
struct Scsi_Host *next;
struct Scsi_Host *prev;
struct pci_dev *pdev; /* PCI device or NULL for non PCI */
struct eata_sp sp; /* status packet */
struct eata_ccb ccb[0]; /* ccb array begins here */
}hostdata;
Expand Down
Loading

0 comments on commit 1a68d41

Please sign in to comment.