| Last change
                  on this file since 331 was
                  297,
                  checked in by alain, 12 years ago | 
        
          | 
Bug fix in both _tty_rx_isr() and _bdv_isr():The ISR must do nothing it the status indicates that
 there is no pending ISR.
 
 | 
        | File size:
            1.6 KB | 
      
      
        
  | Line |  | 
|---|
| 1 | /////////////////////////////////////////////////////////////////////////////////// | 
|---|
| 2 | // File     : mmc_driver.h | 
|---|
| 3 | // Date     : 01/11/2013 | 
|---|
| 4 | // Author   : alain greiner | 
|---|
| 5 | // Copyright (c) UPMC-LIP6 | 
|---|
| 6 | /////////////////////////////////////////////////////////////////////////////////// | 
|---|
| 7 |  | 
|---|
| 8 | #ifndef _GIET_MMC_DRIVERS_H_ | 
|---|
| 9 | #define _GIET_MMC_DRIVERS_H_ | 
|---|
| 10 |  | 
|---|
| 11 | /////////////////////////////////////////////////////////////////////////////////// | 
|---|
| 12 | // TSAR Memory Cache configuration registers offsets and commands | 
|---|
| 13 | /////////////////////////////////////////////////////////////////////////////////// | 
|---|
| 14 |  | 
|---|
| 15 | enum SoclibMemCacheConfigRegs | 
|---|
| 16 | { | 
|---|
| 17 | MEMC_LOCK, | 
|---|
| 18 | MEMC_ADDR_LO, | 
|---|
| 19 | MEMC_ADDR_HI, | 
|---|
| 20 | MEMC_BUF_LENGTH, | 
|---|
| 21 | MEMC_CMD_TYPE | 
|---|
| 22 | }; | 
|---|
| 23 |  | 
|---|
| 24 | enum SoclibMemCacheConfigCmd | 
|---|
| 25 | { | 
|---|
| 26 | MEMC_CMD_NOP, | 
|---|
| 27 | MEMC_CMD_INVAL, | 
|---|
| 28 | MEMC_CMD_SYNC | 
|---|
| 29 | }; | 
|---|
| 30 |  | 
|---|
| 31 | /////////////////////////////////////////////////////////////////////////////////// | 
|---|
| 32 | // MEMC access functions (for TSAR architecture) | 
|---|
| 33 | /////////////////////////////////////////////////////////////////////////////////// | 
|---|
| 34 |  | 
|---|
| 35 | extern void _mmc_inval( unsigned long long buf_paddr, | 
|---|
| 36 | unsigned int buf_length ); | 
|---|
| 37 |  | 
|---|
| 38 | extern void _mmc_sync(  unsigned long long buf_paddr, | 
|---|
| 39 | unsigned int buf_length); | 
|---|
| 40 |  | 
|---|
| 41 | extern void _mmc_isr( unsigned int irq_type, | 
|---|
| 42 | unsigned int irq_id, | 
|---|
| 43 | unsigned int channel ); | 
|---|
| 44 |  | 
|---|
| 45 | /////////////////////////////////////////////////////////////////////////////////// | 
|---|
| 46 |  | 
|---|
| 47 | #endif | 
|---|
| 48 |  | 
|---|
| 49 | // Local Variables: | 
|---|
| 50 | // tab-width: 4 | 
|---|
| 51 | // c-basic-offset: 4 | 
|---|
| 52 | // c-file-offsets:((innamespace . 0)(inline-open . 0)) | 
|---|
| 53 | // indent-tabs-mode: nil | 
|---|
| 54 | // End: | 
|---|
| 55 | // vim: filetype=c:expandtab:shiftwidth=4:tabstop=4:softtabstop=4 | 
|---|
| 56 |  | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.