vfs: check userland buffers before reading them.
[haiku.git] / src / add-ons / media / media-add-ons / radeon / MSP3430.h
blob5700a5940b5922289cd6b6d7b729590534d3d113
1 /******************************************************************************
3 / File: MSP3430.h
5 / Description: Micronas Multistandard Sound Processor (MSP) interface.
7 / Copyright 2001, Carlos Hasan
9 *******************************************************************************/
11 #ifndef __MSP3430_H__
12 #define __MSP3430_H__
14 #include "I2CPort.h"
16 class CMSP3430 {
17 public:
18 CMSP3430(CI2CPort & port);
20 ~CMSP3430();
22 status_t InitCheck() const;
24 void SetEnable(bool enable);
26 private:
27 int ControlRegister();
29 void SetControlRegister(int value);
31 int Register(int address, int subaddress);
33 void SetRegister(int address, int subaddress, int value);
35 private:
36 CI2CPort & fPort;
37 int fAddress;
40 #endif