Show
Ignore:
Timestamp:
09/09/07 12:04:35 (15 years ago)
Author:
ppalmers
Message:

- Introduce a generic infrastructure for FFADODevices to present the clock sources they support and their state
- Implement this infrastructure for BeBoB devices
- Implement this infrastructure for ECHO Fireworks devices

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/fireworks/fireworks_device.h

    r589 r639  
    3030#include "genericavc/avc_avdevice.h" 
    3131 
     32#include "efc/efc_cmd.h" 
     33#include "efc/efc_cmds_hardware.h" 
     34 
     35#include <pthread.h> 
     36 
    3237class ConfigRom; 
    3338class Ieee1394Service; 
     
    4752 
    4853    virtual void showDevice(); 
     54     
     55    virtual ClockSourceVector getSupportedClockSources(); 
     56    virtual bool setActiveClockSource(ClockSource); 
     57    virtual ClockSource getActiveClockSource(); 
     58 
     59// Echo specific stuff 
     60private: 
     61    bool doEfcOverAVC(EfcCmd& c); 
     62     
     63    bool discoverUsingEFC(); 
     64 
     65    FFADODevice::ClockSource clockIdToClockSource(uint32_t clockflag); 
     66    bool isClockValid(uint32_t id); 
     67    uint32_t getClock(); 
     68    bool setClock(uint32_t); 
     69 
     70    uint32_t            m_efc_version; 
     71 
     72    EfcHardwareInfoCmd  m_HwInfo; 
     73 
     74    bool updatePolledValues(); 
     75    pthread_mutex_t     m_polled_mutex; 
     76    EfcPolledValuesCmd  m_Polled; 
     77 
     78    bool                m_efc_discovery_done; 
    4979 
    5080};