os/nandboot-R2_0_4/lib/mtd-compat.h File Reference

#include <linux/autoconf.h>
#include "lib.h"

Include dependency graph for mtd-compat.h:

Go to the source code of this file.

Data Structures

struct  kvec
struct  list_head
struct  notifier_block

Defines

#define CONFIG_MTD_DEBUG_VERBOSE   3
#define CONFIG_MTD_NAND_VERIFY_WRITE
#define NAND_BBT_SUPPORT   0
#define NAND_WRITE_SUPPORT   0
#define NAND_ERASE_SUPPORT   0
#define NAND_MULTICHIP_SUPPORT   0
#define NAND_HWECC_SUPPORT   0
#define NAND_KVEC_SUPPORT   0
#define nand_erase   NULL
#define nand_write   NULL
#define nand_write_ecc   NULL
#define nand_write_oob   NULL
#define nand_block_markbad   NULL
#define nand_default_block_markbad   NULL
#define nand_writev   NULL
#define nand_writev_ecc   NULL
#define min_t(type, x, y)   ({ type __x = (x); type __y = (y); __x < __y ? __x: __y; })
#define max_t(type, x, y)   ({ type __x = (x); type __y = (y); __x > __y ? __x: __y; })
#define min(x, y)
#define max(x, y)
#define cpu_to_le16(x)   ((__le16) (__u16)(x))
#define le16_to_cpu(x)   ((__u16) (__le16)(x))
#define GFP_KERNEL   0
#define kmalloc(size, mode)   malloc(size)
#define kfree(ptr)   free(ptr)
#define HZ   1000
#define TASK_INTERRUPTIBLE   0
#define TASK_UNINTERRUPTIBLE   1
#define set_current_state(x)   do { } while (0)
#define schedule()   do { } while (0)
#define cond_resched()   do { } while (0)
#define wake_up(x)   do { } while (0)
#define wait_queue_head_t   int
#define DECLARE_WAITQUEUE(x, y)
#define init_waitqueue_head(x)   do { } while (0)
#define init_waitqueue_head(x)   do { } while (0)
#define add_wait_queue(x, y)   do { } while (0)
#define remove_wait_queue(x, y)   do { } while (0)
#define spinlock_t   int
#define spin_lock_init(x)   do { } while (0)
#define spin_lock(x)   do { } while (0)
#define spin_unlock(x)   do { } while (0)
#define time_before(x, y)   (x | y | 1)
#define local_irq_save(x)   do { (void)x; } while (0)
#define local_irq_restore(x)   do { (void)x; } while (0)
#define __iomem
#define ioremap(addr, pgsize)   ((void *) (addr))
#define iounmap(addr)   do { } while (0)
#define printk(fmt, params...)   do { } while (0)
#define KERN_INFO   ""
#define KERN_DEBUG   ""
#define KERN_NOTICE   ""
#define KERN_WARNING   ""
#define KERN_ERR   ""
#define __init
#define __exit
#define module_init(x)
#define module_exit(x)
#define MODULE_LICENSE(x)
#define MODULE_AUTHOR(x)
#define MODULE_DESCRIPTION(x)
#define EXPORT_SYMBOL(x)
#define EXPORT_SYMBOL_GPL(x)
#define touch_softlockup_watchdog()   do { } while (0)
#define THIS_MODULE   0
#define BUG()   error2("BUG in " __FILE__, __LINE__, __FUNCTION__)

Variables

unsigned long jiffies


Define Documentation

#define __exit

Definition at line 162 of file mtd-compat.h.

#define __init

Definition at line 161 of file mtd-compat.h.

#define __iomem

Definition at line 142 of file mtd-compat.h.

Referenced by crisv32_nand_flash_probe().

#define add_wait_queue ( x,
 )     do { } while (0)

Definition at line 122 of file mtd-compat.h.

Referenced by nand_get_device().

 
#define BUG (  )     error2("BUG in " __FILE__, __LINE__, __FUNCTION__)

Definition at line 178 of file mtd-compat.h.

Referenced by init_dma(), iop_usb_config(), iop_usb_endpoint_init(), nand_block_checkbad(), nand_fill_oob(), nand_scan(), nand_scan_tail(), nand_select_chip(), nand_transfer_oob(), and port_gio_config().

 
#define cond_resched (  )     do { } while (0)

Definition at line 113 of file mtd-compat.h.

Referenced by nand_wait().

#define CONFIG_MTD_DEBUG_VERBOSE   3

Definition at line 40 of file mtd-compat.h.

#define CONFIG_MTD_NAND_VERIFY_WRITE

Definition at line 42 of file mtd-compat.h.

#define cpu_to_le16 ( x   )     ((__le16) (__u16)(x))

Definition at line 98 of file mtd-compat.h.

Referenced by nand_block_bad(), and nand_read_byte16().

#define DECLARE_WAITQUEUE ( x,
 ) 

Definition at line 119 of file mtd-compat.h.

Referenced by nand_get_device().

#define EXPORT_SYMBOL ( x   ) 

Definition at line 168 of file mtd-compat.h.

#define EXPORT_SYMBOL_GPL ( x   ) 

Definition at line 169 of file mtd-compat.h.

#define GFP_KERNEL   0

Definition at line 103 of file mtd-compat.h.

Referenced by circbuf_open(), crisv32_init_leds(), crisv32_nand_flash_probe(), framepars_open(), framepars_write(), gammas_open(), gpio_open(), histograms_open(), huffman_open(), jpeghead_open(), nand_scan(), nand_scan_bbt(), and nand_scan_tail().

#define HZ   1000

Definition at line 108 of file mtd-compat.h.

#define init_waitqueue_head ( x   )     do { } while (0)

Definition at line 121 of file mtd-compat.h.

#define init_waitqueue_head ( x   )     do { } while (0)

Definition at line 121 of file mtd-compat.h.

Referenced by circbuf_all_init(), framepars_init(), gpio_open(), histograms_init(), and nand_set_defaults().

#define ioremap ( addr,
pgsize   )     ((void *) (addr))

Definition at line 143 of file mtd-compat.h.

Referenced by crisv32_nand_flash_probe(), and init_elphel_ioremap().

#define iounmap ( addr   )     do { } while (0)

Definition at line 144 of file mtd-compat.h.

Referenced by crisv32_nand_flash_probe().

#define KERN_DEBUG   ""

Definition at line 155 of file mtd-compat.h.

Referenced by read_abs_bbts(), read_bbt(), and search_bbt().

#define KERN_ERR   ""

Definition at line 158 of file mtd-compat.h.

Referenced by circbuf_all_init(), crisv32_eth_set_config(), exif_init(), ext353__init(), flash_probe(), fpga_clock_init(), fpga_init(), fpga_jtag_init(), framepars_init(), gammas_init(), gpio_init(), histograms_init(), ide_dma_intr(), image_acq_init(), nand_resume(), nand_scan(), nand_scan_bbt(), nand_update_bbt(), x353raw_init(), and xi2c_init().

#define KERN_INFO   ""

Definition at line 154 of file mtd-compat.h.

Referenced by __ide_dma_off(), create_bbt(), crisv32_eth_close(), crisv32_eth_set_mac_address(), init_axis_flash(), nand_scan(), nand_scan_ident(), probe_cs(), and read_bbt().

#define KERN_NOTICE   ""

Definition at line 156 of file mtd-compat.h.

Referenced by crisv32_eth_receive_packet(), and nand_do_write_ops().

#define KERN_WARNING   ""

Definition at line 157 of file mtd-compat.h.

Referenced by __ide_dma_bad_drive(), create_bbt(), crisv32_boot_setup(), crisv32_eth_tx_timeout(), nand_do_read_ecc(), nand_erase_nand(), nand_scan(), nand_scan_ident(), nand_scan_tail(), read_bbt(), and search_bbt().

#define kfree ( ptr   )     free(ptr)

Definition at line 105 of file mtd-compat.h.

Referenced by circbuf_all_release(), crisv32_nand_flash_probe(), framepars_open(), framepars_release(), framepars_write(), gammas_open(), gammas_release(), gpio_release(), histograms_open(), histograms_release(), nand_release(), nand_scan(), nand_scan_bbt(), and stream__release().

#define kmalloc ( size,
mode   )     malloc(size)

Definition at line 104 of file mtd-compat.h.

Referenced by circbuf_open(), crisv32_init_leds(), crisv32_nand_flash_probe(), framepars_open(), framepars_write(), gammas_open(), gpio_open(), histograms_open(), huffman_open(), jpeghead_open(), nand_scan(), nand_scan_bbt(), nand_scan_tail(), and stream__open().

#define le16_to_cpu ( x   )     ((__u16) (__le16)(x))

Definition at line 100 of file mtd-compat.h.

Referenced by nand_write_byte16().

#define local_irq_restore ( x   )     do { (void)x; } while (0)

Definition at line 139 of file mtd-compat.h.

Referenced by canon_lens_io(), capture_pins(), crisv32_hwcontrol(), exif_write(), fpga_hist_read_nice(), fpga_table_write_nice(), get_qtable(), gpio_ioctl(), gpio_poll(), gpio_write(), i2c_inbyte(), i2c_outbyte(), i2c_restart(), i2c_start(), i2c_stop(), init_gammas(), init_histograms(), init_qtable_fpga(), init_qtable_head_cache(), JTAG_CAPTURE(), JTAG_configure(), JTAG_EXTEST(), JTAG_readID(), mt9x001_pgm_detectsensor(), mt9x001_pgm_initsensor(), putlong_meta(), putlong_meta_raw(), reset_compressor(), set_gamma_table(), set_qtable_fpga(), setFramePar(), setFramePars(), setFrameParsAtomic(), setget_input(), setget_output(), unlock_gamma_node(), write_meta(), and write_meta_raw().

#define local_irq_save ( x   )     do { (void)x; } while (0)

Definition at line 137 of file mtd-compat.h.

Referenced by canon_lens_io(), capture_pins(), crisv32_hwcontrol(), exif_write(), fpga_hist_read_nice(), fpga_table_write_nice(), get_qtable(), gpio_ioctl(), gpio_poll(), gpio_write(), i2c_inbyte(), i2c_outbyte(), i2c_restart(), i2c_start(), i2c_stop(), init_gammas(), init_histograms(), init_qtable_fpga(), init_qtable_head_cache(), JTAG_CAPTURE(), JTAG_configure(), JTAG_EXTEST(), JTAG_readID(), mt9x001_pgm_detectsensor(), mt9x001_pgm_initsensor(), putlong_meta(), putlong_meta_raw(), reset_compressor(), set_gamma_table(), set_qtable_fpga(), setFramePar(), setFramePars(), setFrameParsAtomic(), setget_input(), setget_output(), unlock_gamma_node(), write_meta(), and write_meta_raw().

#define max ( x,
 ) 

Value:

({ \
        typeof(x) _x = (x);     \
        typeof(y) _y = (y);     \
        (void) (&_x == &_y);            \
        _x > _y ? _x : _y; })

Definition at line 89 of file mtd-compat.h.

#define max_t ( type,
x,
 )     ({ type __x = (x); type __y = (y); __x > __y ? __x: __y; })

Definition at line 80 of file mtd-compat.h.

#define min ( x,
 ) 

Value:

({ \
        typeof(x) _x = (x);     \
        typeof(y) _y = (y);     \
        (void) (&_x == &_y);            \
        _x < _y ? _x : _y; })

Definition at line 83 of file mtd-compat.h.

#define min_t ( type,
x,
 )     ({ type __x = (x); type __y = (y); __x < __y ? __x: __y; })

Definition at line 77 of file mtd-compat.h.

Referenced by nand_fill_oob(), nand_read_oob(), nand_read_oob_syndrome(), nand_transfer_oob(), nand_write_oob_syndrome(), and rflflash_nand_rw().

#define MODULE_AUTHOR ( x   ) 

Definition at line 166 of file mtd-compat.h.

#define MODULE_DESCRIPTION ( x   ) 

Definition at line 167 of file mtd-compat.h.

#define module_exit ( x   ) 

Definition at line 164 of file mtd-compat.h.

#define module_init ( x   ) 

Definition at line 163 of file mtd-compat.h.

#define MODULE_LICENSE ( x   ) 

Definition at line 165 of file mtd-compat.h.

#define NAND_BBT_SUPPORT   0

Definition at line 46 of file mtd-compat.h.

#define nand_block_markbad   NULL

Definition at line 63 of file mtd-compat.h.

#define nand_default_block_markbad   NULL

Definition at line 64 of file mtd-compat.h.

Referenced by nand_scan(), and nand_set_defaults().

#define nand_erase   NULL

Definition at line 56 of file mtd-compat.h.

#define NAND_ERASE_SUPPORT   0

Definition at line 48 of file mtd-compat.h.

#define NAND_HWECC_SUPPORT   0

Definition at line 50 of file mtd-compat.h.

Referenced by nand_scan().

#define NAND_KVEC_SUPPORT   0

Definition at line 51 of file mtd-compat.h.

#define NAND_MULTICHIP_SUPPORT   0

Definition at line 49 of file mtd-compat.h.

#define nand_write   NULL

Definition at line 60 of file mtd-compat.h.

#define nand_write_ecc   NULL

Definition at line 61 of file mtd-compat.h.

#define nand_write_oob   NULL

Definition at line 62 of file mtd-compat.h.

#define NAND_WRITE_SUPPORT   0

Definition at line 47 of file mtd-compat.h.

#define nand_writev   NULL

Definition at line 68 of file mtd-compat.h.

#define nand_writev_ecc   NULL

Definition at line 69 of file mtd-compat.h.

#define printk ( fmt,
params...   )     do { } while (0)

Definition at line 152 of file mtd-compat.h.

Referenced by _353_configure(), __ide_dma_bad_drive(), __ide_dma_off(), add_sensor_proc(), calc_pll_params(), camera_interrupts(), circbuf_all_init(), circbuf_all_ioctl(), circbuf_all_lseek(), circbuf_all_mmap(), circbuf_all_open(), circbuf_all_poll(), circbuf_all_read(), circbuf_all_release(), circbuf_all_write(), circbuf_lseek(), circbuf_mmap(), circbuf_open(), circbuf_poll(), circbuf_read(), circbuf_write(), circbufValidPointer(), create_bbt(), cris_atapi_input_bytes(), cris_atapi_output_bytes(), cris_ide_build_dmatable(), cris_ide_init(), cris_ide_inw(), cris_ide_outw(), crisv32_boot_setup(), crisv32_device_ready(), crisv32_eth_close(), crisv32_eth_receive_packet(), crisv32_eth_reset_rings(), crisv32_eth_send_packet(), crisv32_eth_set_config(), crisv32_eth_set_mac_address(), crisv32_eth_setup_controller(), crisv32_eth_tx_timeout(), crisv32_ethernet_bug(), crisv32_ethernet_init(), crisv32_hwcontrol(), crisv32_io_get(), crisv32_io_get_name(), crisv32_nand_flash_probe(), crisv32rx_eth_interrupt(), crisv32tx_eth_interrupt(), encode_time(), etrax_gpio_wake_up_check(), exif_init(), exif_open(), exif_read(), exif_rebuild(), exif_release(), exif_write(), ext353__init(), fi2c_ioctl(), fi2c_readData(), fi2c_writeData(), flash_probe(), fpga_clock_init(), fpga_clock_ioctl(), fpga_clock_open(), fpga_clock_release(), fpga_hist_read_nice(), fpga_init(), fpga_initSDRAM(), fpga_io_ioctl(), fpga_io_lseek(), fpga_io_read(), fpga_io_table_write(), fpga_io_write(), fpga_ioctl(), fpga_jtag_init(), fpga_jtag_lseek(), fpga_jtag_open(), fpga_jtag_read(), fpga_jtag_release(), fpga_jtag_write(), fpga_lseek(), fpga_open(), fpga_release(), fpga_resetSDRAM(), fpga_table_write_nice(), fpga_write(), framepars_init(), framepars_lseek(), framepars_mmap(), framepars_open(), framepars_release(), framepars_write(), fsdram_lseek(), fsdram_open(), fsdram_read(), fsdram_release(), fsdram_write(), gamma_calc_reverse(), gamma_calc_scaled(), gamma_encode_fpga(), gammas_init(), gammas_lseek(), gammas_mmap(), gammas_open(), gammas_release(), get_gamma_fpga(), get_histograms(), get_qtable(), gpio_init(), gpio_poll(), gpio_write(), histograms_init(), histograms_lseek(), histograms_mmap(), histograms_open(), histograms_release(), huffman_read(), huffman_write(), i2c_inbyte(), i2c_ioctl(), i2c_outbyte(), i2c_readData(), i2c_restart(), i2c_start(), i2c_stop(), i2c_writeData(), ide_dma_intr(), ide_dma_verbose(), image_acq_init(), init_axis_flash(), init_e100_ide(), init_elphel_ioremap(), init_FPGA(), init_gammas(), init_histograms(), init_pgm_proc(), init_qtable_fpga(), init_qtable_head_cache(), initGlobalPars(), initSequencers(), insert_first_nonscaled(), insert_first_scaled(), jpeg_htable_fpga_encode(), jpeg_htable_init(), jpeg_prep_htable(), jpeghead_lseek(), jpeghead_read(), jpegheader_create(), JTAG_CAPTURE(), JTAG_configure(), JTAG_EXTEST(), JTAG_openChannel(), JTAG_readID(), JTAG_resetChannel(), jtag_send(), jtag_write_bits(), mt9x001_pgm_detectsensor(), mt9x001_pgm_exposure(), mt9x001_pgm_gains(), mt9x001_pgm_initsensor(), mt9x001_pgm_limitfps(), mt9x001_pgm_sensorregs(), mt9x001_pgm_triggermode(), mt9x001_pgm_window(), mt9x001_pgm_window_common(), mt9x001_pgm_window_safe(), nand_block_checkbad(), nand_do_read_ecc(), nand_do_write_ops(), nand_erase_nand(), nand_read_buf(), nand_resume(), nand_scan(), nand_scan_bbt(), nand_scan_ident(), nand_scan_tail(), nand_select_chip(), nand_update_bbt(), nand_wait(), pgm_aexp(), pgm_afterinit(), pgm_compctl(), pgm_compmode(), pgm_comprestart(), pgm_compstop(), pgm_detectsensor(), pgm_exposure(), pgm_focusmode(), pgm_gains(), pgm_gamma(), pgm_gammaload(), pgm_hist(), pgm_i2c(), pgm_initsensor(), pgm_irq(), pgm_limitfps(), pgm_memcompressor(), pgm_memsensor(), pgm_prescal(), pgm_quality(), pgm_recalcseq(), pgm_sensorin(), pgm_sensorphase(), pgm_sensorregs(), pgm_sensorrun(), pgm_sensorstop(), pgm_triggermode(), pgm_trigseq(), pgm_window(), pgm_window_common(), pgm_window_safe(), printDefaultPage(), probe_cs(), processParsASAP(), processParsSeq(), qtables_create(), read_abs_bbts(), read_bbt(), read_page_to_buffer(), reset_compressor(), resetFrameNumber(), schedule_pgm_func(), schedule_this_pgm_func(), search_bbt(), set_gamma_table(), set_pgm(), set_pgm_mode(), set_qtable_fpga(), setClockFreq(), setFramePar(), setFramePars(), setFrameParsAtomic(), setup_arch(), showUsage(), unlock_gamma_node(), updateFramePars(), x313_dma_init(), x313_dma_start(), x313_dma_stop(), x313_setDMABuffer(), x353raw_fpn_lseek(), x353raw_fpn_open(), x353raw_fpn_read(), x353raw_fpn_readline(), x353raw_fpn_release(), x353raw_fpn_writeline(), x353raw_frame_read(), x353raw_frame_readline(), x353raw_frame_release(), x353raw_frame_write(), x353raw_frame_writeline(), x353raw_init(), xi2c_diagnose(), xi2c_disable(), xi2c_getbit(), xi2c_getscl(), xi2c_inbyte(), xi2c_init(), xi2c_nostop(), xi2c_open(), xi2c_outbyte(), xi2c_read(), xi2c_release(), xi2c_scl(), xi2c_sda(), xi2c_sendack(), xi2c_start(), xi2c_stop(), and xi2c_write().

#define remove_wait_queue ( x,
 )     do { } while (0)

Definition at line 123 of file mtd-compat.h.

Referenced by nand_get_device().

 
#define schedule (  )     do { } while (0)

Definition at line 112 of file mtd-compat.h.

Referenced by nand_get_device().

#define set_current_state ( x   )     do { } while (0)

Definition at line 111 of file mtd-compat.h.

Referenced by nand_get_device().

#define spin_lock ( x   )     do { } while (0)

Definition at line 128 of file mtd-compat.h.

Referenced by crisv32_eth_check_speed(), crisv32_eth_ioctl(), crisv32_eth_open(), crisv32_eth_set_config(), crisv32_eth_set_duplex(), crisv32_eth_set_speed(), gpio_pa_interrupt(), nand_get_device(), and nand_release_device().

#define spin_lock_init ( x   )     do { } while (0)

Definition at line 127 of file mtd-compat.h.

Referenced by crisv32_ethernet_device_init(), crisv32_init_leds(), crisv32_io_init(), and nand_set_defaults().

#define spin_unlock ( x   )     do { } while (0)

Definition at line 129 of file mtd-compat.h.

Referenced by crisv32_eth_check_speed(), crisv32_eth_ioctl(), crisv32_eth_open(), crisv32_eth_set_config(), crisv32_eth_set_duplex(), crisv32_eth_set_speed(), gpio_pa_interrupt(), nand_get_device(), and nand_release_device().

#define spinlock_t   int

Definition at line 126 of file mtd-compat.h.

Referenced by nand_get_device().

#define TASK_INTERRUPTIBLE   0

Definition at line 109 of file mtd-compat.h.

#define TASK_UNINTERRUPTIBLE   1

Definition at line 110 of file mtd-compat.h.

Referenced by nand_get_device().

#define THIS_MODULE   0

Definition at line 174 of file mtd-compat.h.

Referenced by init_axis_flash().

#define time_before ( x,
 )     (x | y | 1)

Definition at line 133 of file mtd-compat.h.

Referenced by nand_wait(), and nand_wait_ready().

 
#define touch_softlockup_watchdog (  )     do { } while (0)

Definition at line 172 of file mtd-compat.h.

Referenced by nand_wait_ready().

#define wait_queue_head_t   int

Definition at line 118 of file mtd-compat.h.

Referenced by nand_get_device().

#define wake_up ( x   )     do { } while (0)

Definition at line 114 of file mtd-compat.h.

Referenced by nand_release_device().


Variable Documentation

unsigned long jiffies

Definition at line 132 of file mtd-compat.h.

Referenced by crisv32_clear_network_leds(), crisv32_eth_check_duplex(), crisv32_eth_check_speed(), crisv32_eth_receive_packet(), crisv32_eth_send_packet(), crisv32_ethernet_device_init(), crisv32_init_leds(), nand_do_read_ecc(), nand_wait(), and nand_wait_ready().


Generated on Fri Nov 28 00:08:34 2008 for elphel by  doxygen 1.5.1