Ignore:
Timestamp:
Nov 3, 2014, 10:53:00 AM (10 years ago)
Author:
alain
Message:

Introducing dynamic allocation of peripheral channel(TTY, NIC, TIM, CMA)
Removint the ICU driver : ICU component not supported anymore.
Removing the FBF driver.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_drivers/ioc_driver.h

    r413 r437  
    1818// USE_IOC_BDV, USE_IOC_SDC, USE_IOC_HBA, USE_IOC_RDK.
    1919//
    20 // Any physical block device driver xxx must provide the following API:
    21 // - _xxx_init()
    22 // - _xxx_read()
    23 // - _xxx_write()
    24 // - _xxx_get_status()
    25 // - _xxx_get_block_size()
    26 // The "channel" parameter is no transmited to single channel devices.
     20// Any physical block device driver must provide the 5 five functions defined
     21// by this generic driver.
    2722//
    2823// The _ioc_read() and _ioc_write() functions are always blocking for
     
    6762// If the RAMDISK is used, an extra memory segment with virtual base address
    6863// SEG_RDK_BASE, used by RDK driver, must be defined in hard_config.h.
    69 ///////////////////////////////////////////////////////////////////////////////////
    70 // Implementation note:
    7164//
    72 // 1) In order to share the code, the two _ioc_read() and _ioc_write() functions
    73 // call the same _ioc_access() function.
    74 //
    75 // 2) The IOMMU is not supported yet, but the method is the following:
     65// The IOMMU is not supported yet, but the method is the following:
    7666// A fixed size 2 Mbytes vseg is allocated to the IOC peripheral, in the I/O
    7767// virtual space, and the user buffer is dynamically remapped to one single
     
    10393
    10494///////////////////////////////////////////////////////////////////////////////////
    105 // IOC access functions  (generic disk controller)
     95//      External functions                           
    10696///////////////////////////////////////////////////////////////////////////////////
    10797
    10898///////////////////////////////////////////////////////////////////////////////
    109 // This function cheks block size, and desactivates the IOC interrupts.
     99// This function cheks block size, and desactivates interrupts.
    110100// Return 0 for success, non zero if error.
    111101///////////////////////////////////////////////////////////////////////////////
     
    113103
    114104///////////////////////////////////////////////////////////////////////////////
    115 // Transfer data from a memory buffer to the block device.
    116 // - mode     : BOOT_PA / BOOT_VA / KERNEL / USER
     105// Transfer data from a memory buffer to the disk.
     106// - mode     : BOOT / KERNEL / USER
    117107// - lba      : first block index on the block device
    118108// - buffer   : base address of the memory buffer (must be word aligned)
     
    127117
    128118///////////////////////////////////////////////////////////////////////////////
    129 // Transfer data from the block device to a memory buffer.
    130 // - mode     : BOOT_PA / BOOT_VA / KERNEL / USER
     119// Transfer data from the disk to a memory buffer.
     120// - mode     : BOOT / KERNEL / USER
    131121// - lba      : first block index on the block device
    132122// - buffer   : base address of the memory buffer (must be word aligned)
     
    142132///////////////////////////////////////////////////////////////////////////////
    143133// This function returns in the status variable, the transfert status, and
    144 // acknowledge the IRQ if the IOC controler is not busy.
     134// acknowledge the IRQ if required.
    145135// Returns 0 if success, > 0 if error
    146136///////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.