#include <fs/typedefs.h>Go to the source code of this file.
Defines | |
| #define | IDE_SUPPORT_WRITE 0 |
| #define | IDE_SUPPORT_ATAPI 1 |
| #define | ATAPI_START_SEARCH_SECTOR 16 |
| #define | ATAPI_MAX_SEARCH_SECTOR 100 |
| #define | IDE_OK 0x00 |
| #define | IDE_ERROR 0x01 |
| #define | IDE_DRIVE_NOT_FOUND 0x02 |
| #define | IDE_PARAM_ERROR 0x03 |
| #define | IDE_BUSY 0x04 |
| #define | IDE_NOT_SUPPORTED 0x08 |
| #define | IDE_DRIVE_C 0 |
| #define | IDE_DRIVE_D 1 |
| #define | IDE_HARDDISK 0 |
| #define | IDE_HARDDISK_7MHZ 1 |
| #define | IDE_COMPACT_FLASH 2 |
| #define | MEM_8BIT_COMPACT_FLASH 3 |
| #define | IDE_SECTOR_SIZE 512 |
| #define | ATAPI_SECTOR_SIZE 2048 |
| #define | MAX_SECTOR_SIZE 2048 |
Typedefs | |
| typedef void | IDE_MOUNT_FUNC (int nDevice) |
Functions | |
| int | IDEInit (int nBaseAddress, int nIDEMode, IDE_MOUNT_FUNC *pMountFunc, IDE_MOUNT_FUNC *pUnMountFunc) |
| int | IDEMountDevice (BYTE bDevice, BYTE *pSectorBuffer) |
| int | IDEGetSectorSize (BYTE bDevice) |
| int | IDEIsCDROMDevice (BYTE bDevice) |
| int | IDEIsZIPDevice (BYTE bDevice) |
| int | IDEUnMountDevice (BYTE bDevice) |
| DWORD | IDEGetTotalSectors (BYTE bDevice) |
| int | IDEReadSectors (BYTE bDevice, void *pData, DWORD dwStartSector, WORD wSectorCount) |
| int | IDEATAPISetCDSpeed (BYTE bDevice, WORD wSpeed) |
| #define IDE_SUPPORT_WRITE 0 |
| #define IDE_SUPPORT_ATAPI 1 |
| #define ATAPI_START_SEARCH_SECTOR 16 |
| #define ATAPI_MAX_SEARCH_SECTOR 100 |
| #define IDE_OK 0x00 |
Referenced by FATFileRead(), IDEATAPISetCDSpeed(), IDEInit(), IDEMountDevice(), and IDEReadSectors().
| #define IDE_ERROR 0x01 |
Referenced by IDEMountDevice(), IDEReadSectors(), and IDEUnMountDevice().
| #define IDE_DRIVE_NOT_FOUND 0x02 |
Referenced by IDEATAPISetCDSpeed(), and IDEReadSectors().
| #define IDE_PARAM_ERROR 0x03 |
Referenced by IDEReadSectors().
| #define IDE_BUSY 0x04 |
| #define IDE_NOT_SUPPORTED 0x08 |
Referenced by IDEATAPISetCDSpeed().
| #define IDE_DRIVE_C 0 |
Referenced by CFChange().
| #define IDE_DRIVE_D 1 |
| #define IDE_HARDDISK 0 |
Referenced by IDEInit().
| #define IDE_HARDDISK_7MHZ 1 |
Referenced by IDEInit().
| #define IDE_COMPACT_FLASH 2 |
Referenced by IDEInit().
| #define MEM_8BIT_COMPACT_FLASH 3 |
Referenced by IDEInit().
| #define IDE_SECTOR_SIZE 512 |
Referenced by IDEMountDevice().
| #define ATAPI_SECTOR_SIZE 2048 |
Referenced by IDEMountDevice().
| #define MAX_SECTOR_SIZE 2048 |
| typedef void IDE_MOUNT_FUNC(int nDevice) |
| int IDEInit | ( | int | nBaseAddress, |
| int | nIDEMode, | ||
| IDE_MOUNT_FUNC * | pMountFunc, | ||
| IDE_MOUNT_FUNC * | pUnMountFunc | ||
| ) |
References _BV, _drive::bDevice, _drive::bIDEMode, BV, CF_AVAILABLE, CF_INT_FALLING_EDGE, CF_INT_RISING_EDGE, CF_INT_SENS_MASK, CF_IRQ, CF_NOT_AVAILABLE, CFChange(), EICR, FALSE, IDE_BASE_ADDRESS, IDE_COMPACT_FLASH, IDE_HARDDISK, IDE_HARDDISK_7MHZ, IDE_INT_RISING_EDGE, IDE_IRQ, IDE_MAX_SUPPORTED_DEVICE, IDE_OK, IDESemaInit(), MEM_8BIT_COMPACT_FLASH, memset(), NULL, NutEnterCritical, NutExitCritical, NutRegisterIrqHandler(), NutThreadCreate(), sbi, sig_INTERRUPT6, and sig_INTERRUPT7.
References ATAPI_SECTOR_SIZE, _drive::dwTotalSectors, IDE_ERROR, IDE_MAX_SUPPORTED_DEVICE, IDE_OK, IDE_READY, IDE_SECTOR_SIZE, IDE_SUPPORT_PACKET, IDEFree(), IDELock(), NULL, _drive::wFlags, and _drive::wSectorSize.
Referenced by CFChange().
| int IDEGetSectorSize | ( | BYTE | bDevice | ) |
References IDE_MAX_SUPPORTED_DEVICE, IDEFree(), IDELock(), and _drive::wSectorSize.
| int IDEIsCDROMDevice | ( | BYTE | bDevice | ) |
References FALSE, IDE_CDROM_DEVICE, IDE_MAX_SUPPORTED_DEVICE, IDE_READY, IDEFree(), IDELock(), TRUE, and _drive::wFlags.
| int IDEIsZIPDevice | ( | BYTE | bDevice | ) |
References FALSE, IDE_MAX_SUPPORTED_DEVICE, IDE_READY, IDE_ZIP_DEVICE, IDEFree(), IDELock(), TRUE, and _drive::wFlags.
| int IDEUnMountDevice | ( | BYTE | bDevice | ) |
References IDE_ERROR, IDE_MAX_SUPPORTED_DEVICE, IDEFree(), IDELock(), NULL, and _drive::wFlags.
Referenced by CFChange().
References _drive::dwTotalSectors, IDE_MAX_SUPPORTED_DEVICE, IDEFree(), and IDELock().
References ATAPI_CMD, ATAPI_CMD_READ12, _drive::dwTotalSectors, IDE_DRIVE_NOT_FOUND, IDE_ERROR, IDE_MAX_SUPPORTED_DEVICE, IDE_OK, IDE_PARAM_ERROR, IDE_READY, IDE_SUPPORT_PACKET, IDEFree(), IDELock(), _drive::wFlags, and _drive::wSectorSize.
Referenced by FATFileRead().
References ATAPI_CMD, IDE_DRIVE_NOT_FOUND, IDE_MAX_SUPPORTED_DEVICE, IDE_NOT_SUPPORTED, IDE_OK, IDE_READY, IDE_SUPPORT_PACKET, NULL, and _drive::wFlags.