OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [branches/] [stable_0_2_x/] [or1ksim/] [peripheral/] [atadevice.h] - Diff between revs 1100 and 1364

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 1100 Rev 1364
Line 172... Line 172...
                int daspi, daspo;
                int daspi, daspo;
        } sigs;
        } sigs;
 
 
        /******** simulator settings **********************************/
        /******** simulator settings **********************************/
        /* simulate ata-device                                        */
        /* simulate ata-device                                        */
 
        char *file;   /* Filename (if type == FILE)                   */
        FILE *stream; /* stream where the simulated device connects to*/
        FILE *stream; /* stream where the simulated device connects to*/
        int  type;    /* Simulate device using                        */
        int  type;    /* Simulate device using                        */
                      /* NO_CONNECT: no device connected (dummy)      */
                      /* NO_CONNECT: no device connected (dummy)      */
                      /* FILE      : a file                           */
                      /* FILE      : a file                           */
                      /* LOCAL     : a local stream, e.g./dev/hda1    */
                      /* LOCAL     : a local stream, e.g./dev/hda1    */
Line 192... Line 193...
/* ----- Device Prototypes  -----                                     */
/* ----- Device Prototypes  -----                                     */
/* ------------------------------                                     */
/* ------------------------------                                     */
int ata_device_debug(int lvl, char *format, ...);
int ata_device_debug(int lvl, char *format, ...);
 
 
/* all devices                                                        */
/* all devices                                                        */
void  ata_devices_init(ata_devices *devices, const char *filename0, const char *filename1);
void  ata_devices_init(ata_devices *devices);
void  ata_devices_hw_reset(ata_devices *devices, int reset_signal);
void  ata_devices_hw_reset(ata_devices *devices, int reset_signal);
short ata_devices_read(ata_devices *devices, char adr);
short ata_devices_read(ata_devices *devices, char adr);
void  ata_devices_write(ata_devices *devices, char adr, short value);
void  ata_devices_write(ata_devices *devices, char adr, short value);
 
 
/* single device                                                      */
/* single device                                                      */
void ata_device_init(ata_device *device, int dev, const char *filename);
void ata_device_init(ata_device *device, int dev);
void ata_device_hw_reset(ata_device *device, int reset_signal, int daspo, int pdiagi, int daspi);
void ata_device_hw_reset(ata_device *device, int reset_signal, int daspo, int pdiagi, int daspi);
void ata_device_do_control_register(ata_device *device);
void ata_device_do_control_register(ata_device *device);
void ata_device_do_command_register(ata_device *device);
void ata_device_do_command_register(ata_device *device);
void ata_device_write(ata_device *device, char adr, short value);
void ata_device_write(ata_device *device, char adr, short value);
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.