metalsvm/arch/x86/include/asm/icc.h

67 lines
1.5 KiB
C
Raw Permalink Normal View History

/*
* Copyright 2011 Stefan Lankes, Chair for Operating Systems,
* RWTH Aachen University
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* This file is part of MetalSVM.
*/
/*
* Function and prototypes for MetalSVM's inter core communication
*/
#ifndef __ARCH_ICC_H__
#define __ARCH_ICC_H__
#ifdef __cplusplus
extern "C" {
#endif
#ifdef CONFIG_ROCKCREEK
typedef struct {
uint32_t addr; // address of the initrd
uint32_t size; // size of the initrd
int32_t argc; // number of RCCE arguments
char** argv; // RCCE arguments
} bootinfo_t;
extern bootinfo_t* bootinfo;
2011-07-01 15:41:41 +02:00
enum icc_mail_requests {
PING_REQ=1,
PING_RESP,
SVM_REQ,
SVM_RESP,
2011-08-23 14:45:08 -07:00
NOISE,
2011-07-01 15:41:41 +02:00
};
int icc_init(void);
int icc_halt(void);
void icc_mail_check(void);
2011-05-31 04:57:55 -07:00
int icc_mail_ping(void);
int icc_send_gic_irq(int core_num);
2011-07-02 09:09:53 -07:00
int icc_mail_ping_irq(void);
int icc_mail_ping_jitter(void);
int icc_mail_noise(void);
void icc_wait(int tag);
2011-05-31 04:57:55 -07:00
#endif
#ifdef __cplusplus
}
#endif
#endif