mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-22 11:11:33 +08:00
2005-07-25 Philippe Simons <loki_666@fastmail.fm>
* Makefile.am: added smc.rel. * smc/smc.c, smc/smc.h: New files.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2005-07-25 Philippe Simons <loki_666@fastmail.fm>
|
||||
|
||||
* Makefile.am: added smc.rel.
|
||||
* smc/smc.c, smc/smc.h: New files.
|
||||
|
||||
2005-07-07 Philippe Simons <loki_666@fastmail.fm>
|
||||
|
||||
* Makefile.am: Remove lcd.rel, added console/uart.c,
|
||||
|
||||
@@ -10,6 +10,7 @@ include $(top_srcdir)/../../bsp.am
|
||||
dist_project_lib_DATA = bsp_specs
|
||||
|
||||
include_HEADERS = include/bsp.h
|
||||
include_HEADERS += smc/smc.h
|
||||
include_HEADERS += include/tm27.h
|
||||
|
||||
nodist_include_HEADERS = include/bspopts.h
|
||||
@@ -39,9 +40,14 @@ console_rel_SOURCES = console/uart.c ../../shared/console.c
|
||||
console_rel_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||
|
||||
noinst_PROGRAMS += smc.rel
|
||||
smc_rel_SOURCES = smc/smc.c smc/smc.h
|
||||
smc_rel_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
smc_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
|
||||
|
||||
noinst_LIBRARIES = libbsp.a
|
||||
libbsp_a_SOURCES =
|
||||
libbsp_a_LIBADD = startup.rel console.rel
|
||||
libbsp_a_LIBADD = startup.rel console.rel smc.rel
|
||||
libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/shared/arm920.rel \
|
||||
../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/clock.rel \
|
||||
../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/timer.rel \
|
||||
@@ -71,6 +77,10 @@ $(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h
|
||||
|
||||
$(PROJECT_INCLUDE)/smc.h: smc/smc.h $(PROJECT_INCLUDE)/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/smc.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/smc.h
|
||||
|
||||
$(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,28 @@
|
||||
#ifndef __SMC_H__
|
||||
#define __SMC_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <rtems.h>
|
||||
|
||||
#include "rtems/blkdev.h"
|
||||
|
||||
/* smc_initialize --
|
||||
* SMC disk driver initialization entry point.
|
||||
*/
|
||||
rtems_device_driver
|
||||
smc_initialize(
|
||||
rtems_device_major_number major,
|
||||
rtems_device_minor_number minor,
|
||||
void *arg);
|
||||
|
||||
#define SMC_DRIVER_TABLE_ENTRY \
|
||||
{ smc_initialize, GENERIC_BLOCK_DEVICE_DRIVER_ENTRIES }
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user