mirror of
https://github.com/erichelgeson/BlueSCSI.git
synced 2024-06-07 18:29:33 +00:00
Whitespace/Type cleanup
This commit is contained in:
parent
a45af3edec
commit
ba06827814
|
@ -339,7 +339,6 @@ bool hddimageOpen(SCSI_DEVICE *dev, FsFile *file,int id,int lun,int blocksize)
|
||||||
return true; // File opened
|
return true; // File opened
|
||||||
|
|
||||||
failed:
|
failed:
|
||||||
|
|
||||||
dev->m_file.close();
|
dev->m_file.close();
|
||||||
dev->m_fileSize = dev->m_blocksize = 0; // no file
|
dev->m_fileSize = dev->m_blocksize = 0; // no file
|
||||||
//delete dev->m_file;
|
//delete dev->m_file;
|
||||||
|
@ -463,12 +462,12 @@ void setup()
|
||||||
TRANSCEIVER_IO_SET(vTR_INITIATOR,TR_INPUT);
|
TRANSCEIVER_IO_SET(vTR_INITIATOR,TR_INPUT);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//GPIO(SCSI BUS)Initialization
|
// GPIO(SCSI BUS)Initialization
|
||||||
//Port setting register (lower)
|
// Port setting register (lower)
|
||||||
// GPIOB->regs->CRL |= 0x000000008; // SET INPUT W/ PUPD on PAB-PB0
|
// GPIOB->regs->CRL |= 0x000000008; // SET INPUT W/ PUPD on PAB-PB0
|
||||||
//Port setting register (upper)
|
// Port setting register (upper)
|
||||||
//GPIOB->regs->CRH = 0x88888888; // SET INPUT W/ PUPD on PB15-PB8
|
// GPIOB->regs->CRH = 0x88888888; // SET INPUT W/ PUPD on PB15-PB8
|
||||||
// GPIOB->regs->ODR = 0x0000FF00; // SET PULL-UPs on PB15-PB8
|
// GPIOB->regs->ODR = 0x0000FF00; // SET PULL-UPs on PB15-PB8
|
||||||
// DB and DP are input modes
|
// DB and DP are input modes
|
||||||
SCSI_DB_INPUT()
|
SCSI_DB_INPUT()
|
||||||
|
|
||||||
|
@ -635,7 +634,7 @@ void findDriveImages(FsFile root) {
|
||||||
int lun = 0;
|
int lun = 0;
|
||||||
int blk = 512;
|
int blk = 512;
|
||||||
|
|
||||||
// Positionally read in and coerase the chars to integers.
|
// Positionally read in and coerce the chars to integers.
|
||||||
// We only require the minimum and read in the next if provided.
|
// We only require the minimum and read in the next if provided.
|
||||||
int file_name_length = strlen(name);
|
int file_name_length = strlen(name);
|
||||||
if(file_name_length > 2) { // HD[N]
|
if(file_name_length > 2) { // HD[N]
|
||||||
|
|
|
@ -340,13 +340,13 @@ typedef struct _SCSI_INQUIRY_DATA
|
||||||
// HDD image
|
// HDD image
|
||||||
typedef __attribute__((aligned(4))) struct _SCSI_DEVICE
|
typedef __attribute__((aligned(4))) struct _SCSI_DEVICE
|
||||||
{
|
{
|
||||||
FsFile m_file; // File object
|
FsFile m_file; // File object
|
||||||
uint64_t m_fileSize; // File size
|
uint64_t m_fileSize; // File size
|
||||||
uint16_t m_blocksize; // SCSI BLOCK size
|
uint16_t m_blocksize; // SCSI BLOCK size
|
||||||
uint16_t m_rawblocksize; // OPTICAL raw sector size
|
uint16_t m_rawblocksize; // OPTICAL raw sector size
|
||||||
uint8_t m_type; // SCSI device type
|
uint8_t m_type; // SCSI device type
|
||||||
uint32_t m_blockcount; // blockcount
|
uint32_t m_blockcount; // blockcount
|
||||||
SCSI_INQUIRY_DATA inquiry_block; // SCSI information
|
SCSI_INQUIRY_DATA inquiry_block; // SCSI information
|
||||||
uint8_t m_senseKey; // Sense key
|
uint8_t m_senseKey; // Sense key
|
||||||
uint16_t m_additional_sense_code; // ASC/ASCQ
|
uint16_t m_additional_sense_code; // ASC/ASCQ
|
||||||
uint8_t m_sector_offset; // optical sector offset for missing sync header
|
uint8_t m_sector_offset; // optical sector offset for missing sync header
|
||||||
|
|
Loading…
Reference in New Issue
Block a user