Ignore:
File:
1 edited

Legend:

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

    r56fd7cf r9904eb90  
    3434#define __AHCI_H__
    3535
    36 #include <async.h>
    3736#include <sys/types.h>
    3837#include <devman.h>
     
    4746       
    4847        /** Pointer to AHCI memory registers. */
    49         volatile ahci_memregs_t *memregs;
     48        ahci_memregs_t *memregs;
     49       
     50        /** AHCI device global timer. */
     51        fibril_timer_t *timer;
    5052       
    5153        /** Pointers to sata devices. */
    52         void *sata_devs[AHCI_MAX_PORTS];
    53 
    54         /** Parent session */
    55         async_sess_t *parent_sess;
     54        void *sata_devs[32];
    5655} ahci_dev_t;
    5756
     
    6160        ahci_dev_t *ahci;
    6261       
    63         /** Pointer to ddf function. */
    64         ddf_fun_t *fun;
    65        
    66         /** SATA port number (0-31). */
     62        /** SATA port number(0-31). */
    6763        uint8_t port_num;
    6864       
     65        /** Port interrupt states shadow registers. */
     66        volatile ahci_port_is_t shadow_pxis;
     67       
    6968        /** Device in invalid state (disconnected and so on). */
    70         bool is_invalid_device;
     69        volatile bool invalid_device;
    7170       
    7271        /** Pointer to SATA port. */
    7372        volatile ahci_port_t *port;
    74        
    7573        /** Pointer to command header. */
    7674        volatile ahci_cmdhdr_t *cmd_header;
    77        
    7875        /** Pointer to command table. */
    7976        volatile uint32_t *cmd_table;
     
    8481        /** Mutex for event signaling condition variable. */
    8582        fibril_mutex_t event_lock;
    86        
    8783        /** Event signaling condition variable. */
    8884        fibril_condvar_t event_condvar;
    8985       
    90         /** Event interrupt state. */
    91         ahci_port_is_t event_pxis;
    92        
    9386        /** Block device service id. */
    94         service_id_t service_id;
     87        service_id_t service_id; 
    9588       
    9689        /** Number of device data blocks. */
    9790        uint64_t blocks;
    98        
    9991        /** Size of device data blocks. */
    10092        size_t block_size;
     
    10496       
    10597        /** Device in invalid state (disconnected and so on). */
    106         bool is_packet_device;
     98        bool packet_device;
    10799       
    108100        /** Highest UDMA mode supported. */
Note: See TracChangeset for help on using the changeset viewer.