1*a248dafdSChristopher Ferris /* 2*a248dafdSChristopher Ferris * Copyright (C) 2014 Andrew Duggan 3*a248dafdSChristopher Ferris * Copyright (C) 2014 Synaptics Inc 4*a248dafdSChristopher Ferris * 5*a248dafdSChristopher Ferris * Licensed under the Apache License, Version 2.0 (the "License"); 6*a248dafdSChristopher Ferris * you may not use this file except in compliance with the License. 7*a248dafdSChristopher Ferris * You may obtain a copy of the License at 8*a248dafdSChristopher Ferris * 9*a248dafdSChristopher Ferris * http://www.apache.org/licenses/LICENSE-2.0 10*a248dafdSChristopher Ferris * 11*a248dafdSChristopher Ferris * Unless required by applicable law or agreed to in writing, software 12*a248dafdSChristopher Ferris * distributed under the License is distributed on an "AS IS" BASIS, 13*a248dafdSChristopher Ferris * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14*a248dafdSChristopher Ferris * See the License for the specific language governing permissions and 15*a248dafdSChristopher Ferris * limitations under the License. 16*a248dafdSChristopher Ferris */ 17*a248dafdSChristopher Ferris 18*a248dafdSChristopher Ferris #ifndef _RMIFUNCTION_H_ 19*a248dafdSChristopher Ferris #define _RMIFUNCTION_H_ 20*a248dafdSChristopher Ferris 21*a248dafdSChristopher Ferris class RMIFunction 22*a248dafdSChristopher Ferris { 23*a248dafdSChristopher Ferris public: RMIFunction()24*a248dafdSChristopher Ferris RMIFunction() {} 25*a248dafdSChristopher Ferris RMIFunction(const unsigned char * pdtEntry, unsigned short pageBase, unsigned int interruptCount); GetQueryBase()26*a248dafdSChristopher Ferris unsigned short GetQueryBase() { return m_queryBase; } GetCommandBase()27*a248dafdSChristopher Ferris unsigned short GetCommandBase() { return m_commandBase; } GetControlBase()28*a248dafdSChristopher Ferris unsigned short GetControlBase() { return m_controlBase; } GetDataBase()29*a248dafdSChristopher Ferris unsigned short GetDataBase() { return m_dataBase; } GetInterruptSourceCount()30*a248dafdSChristopher Ferris unsigned char GetInterruptSourceCount() { return m_interruptSourceCount; } GetFunctionNumber()31*a248dafdSChristopher Ferris unsigned char GetFunctionNumber() { return m_functionNumber; } GetFunctionVersion()32*a248dafdSChristopher Ferris unsigned char GetFunctionVersion() { return m_functionVersion; } GetInterruptRegNum()33*a248dafdSChristopher Ferris unsigned char GetInterruptRegNum() { return m_interruptRegNum; } GetInterruptMask()34*a248dafdSChristopher Ferris unsigned char GetInterruptMask() { return m_interruptMask; } 35*a248dafdSChristopher Ferris 36*a248dafdSChristopher Ferris private: 37*a248dafdSChristopher Ferris unsigned short m_queryBase; 38*a248dafdSChristopher Ferris unsigned short m_commandBase; 39*a248dafdSChristopher Ferris unsigned short m_controlBase; 40*a248dafdSChristopher Ferris unsigned short m_dataBase; 41*a248dafdSChristopher Ferris unsigned char m_interruptSourceCount; 42*a248dafdSChristopher Ferris unsigned char m_functionNumber; 43*a248dafdSChristopher Ferris unsigned char m_functionVersion; 44*a248dafdSChristopher Ferris unsigned char m_interruptRegNum; 45*a248dafdSChristopher Ferris unsigned char m_interruptMask; 46*a248dafdSChristopher Ferris }; 47*a248dafdSChristopher Ferris 48*a248dafdSChristopher Ferris #endif // _RMIFUNCTION_H_