#include "../lowlevel/ftape-bsm.h" #include "../lowlevel/ftape-buffer.h" #include "../lowlevel/ftape-format.h" #if LINUX_VERSION_CODE >= KERNEL_VER(2,1,18) # define FT_KSYM(sym) EXPORT_SYMBOL(sym); #else # define FT_KSYM(sym) X(sym), #endif #if LINUX_VERSION_CODE < KERNEL_VER(2,1,18) struct symbol_table ftape_symbol_table = { #include <linux/symtab_begin.h> #endif /* bad sector handling from ftape-bsm.c */ FT_KSYM(ftape_get_bad_sector_entry) FT_KSYM(ftape_find_end_of_bsm_list) /* from ftape-rw.c */ FT_KSYM(ftape_set_state) /* from ftape-ctl.c */ FT_KSYM(ftape_seek_to_bot) FT_KSYM(ftape_seek_to_eot) FT_KSYM(ftape_abort_operation) FT_KSYM(ftape_get_status) FT_KSYM(ftape_enable) FT_KSYM(ftape_disable) FT_KSYM(ftape_mmap) FT_KSYM(ftape_calibrate_data_rate) /* from ftape-io.c */ FT_KSYM(ftape_reset_drive) FT_KSYM(ftape_command)
#include <linux/zftape.h> #include "../zftape/zftape-init.h" #include "../zftape/zftape-read.h" #include "../zftape/zftape-buffers.h" #include "../zftape/zftape-ctl.h" #if LINUX_VERSION_CODE >= KERNEL_VER(2,1,18) # define FT_KSYM(sym) EXPORT_SYMBOL(sym); #else # define FT_KSYM(sym) X(sym), #endif #if LINUX_VERSION_CODE < KERNEL_VER(2,1,18) struct symbol_table zft_symbol_table = { #include <linux/symtab_begin.h> #endif /* zftape-init.c */ FT_KSYM(zft_cmpr_register) FT_KSYM(zft_cmpr_unregister) /* zftape-read.c */ FT_KSYM(zft_fetch_segment_fraction) /* zftape-buffers.c */ FT_KSYM(zft_vmalloc_once) FT_KSYM(zft_vmalloc_always) FT_KSYM(zft_vfree) #if LINUX_VERSION_CODE < KERNEL_VER(2,1,18) #include <linux/symtab_end.h> }; #endif