Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/block/ahci/ahci.h

    r9904eb90 r56fd7cf  
    3434#define __AHCI_H__
    3535
     36#include <async.h>
    3637#include <sys/types.h>
    3738#include <devman.h>
     
    4647       
    4748        /** Pointer to AHCI memory registers. */
    48         ahci_memregs_t *memregs;
    49        
    50         /** AHCI device global timer. */
    51         fibril_timer_t *timer;
     49        volatile ahci_memregs_t *memregs;
    5250       
    5351        /** Pointers to sata devices. */
    54         void *sata_devs[32];
     52        void *sata_devs[AHCI_MAX_PORTS];
     53
     54        /** Parent session */
     55        async_sess_t *parent_sess;
    5556} ahci_dev_t;
    5657
     
    6061        ahci_dev_t *ahci;
    6162       
    62         /** SATA port number(0-31). */
     63        /** Pointer to ddf function. */
     64        ddf_fun_t *fun;
     65       
     66        /** SATA port number (0-31). */
    6367        uint8_t port_num;
    6468       
    65         /** Port interrupt states shadow registers. */
    66         volatile ahci_port_is_t shadow_pxis;
    67        
    6869        /** Device in invalid state (disconnected and so on). */
    69         volatile bool invalid_device;
     70        bool is_invalid_device;
    7071       
    7172        /** Pointer to SATA port. */
    7273        volatile ahci_port_t *port;
     74       
    7375        /** Pointer to command header. */
    7476        volatile ahci_cmdhdr_t *cmd_header;
     77       
    7578        /** Pointer to command table. */
    7679        volatile uint32_t *cmd_table;
     
    8184        /** Mutex for event signaling condition variable. */
    8285        fibril_mutex_t event_lock;
     86       
    8387        /** Event signaling condition variable. */
    8488        fibril_condvar_t event_condvar;
    8589       
     90        /** Event interrupt state. */
     91        ahci_port_is_t event_pxis;
     92       
    8693        /** Block device service id. */
    87         service_id_t service_id; 
     94        service_id_t service_id;
    8895       
    8996        /** Number of device data blocks. */
    9097        uint64_t blocks;
     98       
    9199        /** Size of device data blocks. */
    92100        size_t block_size;
     
    96104       
    97105        /** Device in invalid state (disconnected and so on). */
    98         bool packet_device;
     106        bool is_packet_device;
    99107       
    100108        /** Highest UDMA mode supported. */
Note: See TracChangeset for help on using the changeset viewer.