Subversion Repositories HelenOS-historic

Rev

Rev 13 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13 Rev 34
Line 24... Line 24...
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
29
#ifndef __MP_H__
29
#ifndef __MPS_H__
30
#define __MP_H__
30
#define __MPS_H__
31
 
31
 
32
#include <arch/types.h>
32
#include <arch/types.h>
33
#include <typedefs.h>
33
#include <typedefs.h>
34
#include <synch/waitq.h>
34
#include <synch/waitq.h>
35
#include <config.h>
35
#include <config.h>
36
 
36
 
37
#define CT_EXT_ENTRY_TYPE       0
37
#define CT_EXT_ENTRY_TYPE       0
38
#define CT_EXT_ENTRY_LEN        1
38
#define CT_EXT_ENTRY_LEN        1
39
 
39
 
40
struct __mpfs {
40
struct mps_fs {
41
    __u32 signature;
41
    __u32 signature;
42
    struct __mpct *configuration_table;
42
    struct mps_ct *configuration_table;
43
    __u8 length;
43
    __u8 length;
44
    __u8 revision;
44
    __u8 revision;
45
    __u8 checksum;
45
    __u8 checksum;
46
    __u8 config_type;
46
    __u8 config_type;
47
    __u8 mpfib2;
47
    __u8 mpfib2;
48
    __u8 mpfib3;
48
    __u8 mpfib3;
49
    __u8 mpfib4;
49
    __u8 mpfib4;
50
    __u8 mpfib5;
50
    __u8 mpfib5;
51
} __attribute__ ((packed));
51
} __attribute__ ((packed));
52
 
52
 
53
struct __mpct {
53
struct mps_ct {
54
    __u32 signature;
54
    __u32 signature;
55
    __u16 base_table_length;
55
    __u16 base_table_length;
56
    __u8 revision;
56
    __u8 revision;
57
    __u8 checksum;
57
    __u8 checksum;
58
    __u8 oem_id[8];
58
    __u8 oem_id[8];
Line 115... Line 115...
115
 
115
 
116
 
116
 
117
extern waitq_t ap_completion_wq;
117
extern waitq_t ap_completion_wq;
118
extern waitq_t kmp_completion_wq;
118
extern waitq_t kmp_completion_wq;
119
 
119
 
120
extern int mp_irq_to_pin(int irq);
120
extern int mps_irq_to_pin(int irq);
121
 
121
 
122
extern void mp_init(void);
122
extern void mps_init(void);
123
extern void kmp(void *arg);
123
extern void kmp(void *arg);
124
 
124
 
125
#endif
125
#endif