original files of m241
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
# Makefile - makefile for MIPC Network Device
|
||||
#
|
||||
# modification history
|
||||
# --------------------
|
||||
# 01a,20may09,spw written
|
||||
#
|
||||
# DESCRIPTION
|
||||
# This file contains the makefile rules for building the Multi-OS IPC network
|
||||
# driver
|
||||
#
|
||||
|
||||
TGT_DIR=$(WIND_BASE)/target
|
||||
|
||||
#DOC_FILES= mipcnetEnd.c
|
||||
|
||||
LIB_BASE_NAME=multios_ipc
|
||||
include $(TGT_DIR)/h/make/defs.library
|
||||
|
||||
ifdef _WRS_CONFIG_COMPONENT_MIPC
|
||||
OBJS= mipcnetEnd.o mipcnetIpc.o mnd_vx.o
|
||||
else
|
||||
OBJS=
|
||||
endif
|
||||
|
||||
include $(TGT_DIR)/h/make/rules.library
|
||||
|
||||
# documentation specification for APIGEN
|
||||
include $(TGT_DIR)/h/make/config/comps/mipc/defs.docs
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,57 @@
|
||||
/* mnd_vx.c - MIPC Network Device driver: VxWorks specific routines. */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2009 -2010 Wind River Systems, Inc.
|
||||
*
|
||||
* The right to copy, distribute or otherwise make use of this software
|
||||
* may be licensed only pursuant to the terms of an applicable Wind River
|
||||
* license agreement. No license to Wind River intellectual property rights
|
||||
* is granted herein. All rights not licensed by Wind River are reserved
|
||||
* by Wind River.
|
||||
*/
|
||||
|
||||
/*
|
||||
modification history
|
||||
--------------------
|
||||
01b,24jun10,h_w upgrade to MND 2.1
|
||||
01a,06jul09,spw written.
|
||||
*/
|
||||
|
||||
#include <multios_ipc/mnd_adapt.h>
|
||||
#include <taskLib.h>
|
||||
|
||||
/* Priority of bus ctrl tasks. Should be higher number than MIPC QOS */
|
||||
|
||||
#define MIPCNET_TASK_PRI 80
|
||||
|
||||
/* mipcnet control task stack size */
|
||||
|
||||
#define MIPCNET_TASK_SSIZE 2000
|
||||
|
||||
|
||||
int mnd_proc_create
|
||||
(
|
||||
const char *name,
|
||||
int (*entry)(void *data),
|
||||
void *arg,
|
||||
MULTIOS_PROC_ID *ppid
|
||||
)
|
||||
{
|
||||
MULTIOS_PROC_ID tid = taskSpawn ((char *) name, MIPCNET_TASK_PRI, 0,
|
||||
MIPCNET_TASK_SSIZE, (FUNCPTR) entry,
|
||||
(_Vx_usr_arg_t) arg, 0,0,0,0,0,0,0,0,0);
|
||||
if (tid == TASK_ID_ERROR)
|
||||
return (-1);
|
||||
|
||||
*ppid = tid;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int mnd_proc_delete
|
||||
(
|
||||
MULTIOS_PROC_ID pid
|
||||
)
|
||||
{
|
||||
return (taskDelete (pid));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user