URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 1695 |
Rev 1698 |
Line 121... |
Line 121... |
|
|
/* current DMA mode */
|
/* current DMA mode */
|
int dma_mode;
|
int dma_mode;
|
|
|
/* databuffer */
|
/* databuffer */
|
unsigned short dbuf[4096];
|
uint16_t dbuf[4096];
|
unsigned short *dbuf_ptr;
|
uint16_t *dbuf_ptr;
|
unsigned short dbuf_cnt;
|
uint16_t dbuf_cnt;
|
|
|
/* current statemachine state */
|
/* current statemachine state */
|
int state;
|
int state;
|
|
|
/* current CHS translation settings */
|
/* current CHS translation settings */
|
Line 136... |
Line 136... |
} internals;
|
} internals;
|
|
|
|
|
/******* ATA Device Registers *********************************/
|
/******* ATA Device Registers *********************************/
|
struct {
|
struct {
|
unsigned char command;
|
uint8_t command;
|
unsigned char cylinder_low;
|
uint8_t cylinder_low;
|
unsigned char cylinder_high;
|
uint8_t cylinder_high;
|
unsigned char device_control;
|
uint8_t device_control;
|
unsigned char device_head;
|
uint8_t device_head;
|
unsigned char error;
|
uint8_t error;
|
unsigned char features;
|
uint8_t features;
|
unsigned char sector_count;
|
uint8_t sector_count;
|
unsigned char sector_number;
|
uint8_t sector_number;
|
unsigned char status;
|
uint8_t status;
|
|
|
short dataport_i;
|
uint16_t dataport_i;
|
} regs;
|
} regs;
|
|
|
/******** ata device output signals **************************/
|
/******** ata device output signals **************************/
|
struct {
|
struct {
|
int iordy;
|
int iordy;
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.