Home | History | Annotate | Line # | Download | only in flash
flash_io.h revision 1.2.10.2
      1  1.2.10.2  matt #ifndef _FLASH_IO_H_
      2  1.2.10.2  matt #define _FLASH_IO_H_
      3  1.2.10.2  matt 
      4  1.2.10.2  matt struct flash_io {
      5  1.2.10.2  matt 	device_t fio_dev;
      6  1.2.10.2  matt 	struct bintime fio_creation;
      7  1.2.10.2  matt 	struct bintime fio_last_write;
      8  1.2.10.2  matt 	struct bufq_state *fio_bufq;
      9  1.2.10.2  matt 	uint8_t *fio_data;
     10  1.2.10.2  matt 	daddr_t fio_block;
     11  1.2.10.2  matt 	kmutex_t fio_lock;
     12  1.2.10.2  matt 	bool fio_write_pending;
     13  1.2.10.2  matt 	struct lwp *fio_thread;
     14  1.2.10.2  matt 	kcondvar_t fio_cv;
     15  1.2.10.2  matt 	bool fio_exiting;
     16  1.2.10.2  matt 	struct flash_interface *fio_if;
     17  1.2.10.2  matt };
     18  1.2.10.2  matt 
     19  1.2.10.2  matt int flash_io_submit(struct flash_io *, struct buf *);
     20  1.2.10.2  matt void flash_sync_thread(void *);
     21  1.2.10.2  matt int flash_sync_thread_init(struct flash_io *, device_t,
     22  1.2.10.2  matt 	struct flash_interface *);
     23  1.2.10.2  matt void flash_sync_thread_destroy(struct flash_io *);
     24  1.2.10.2  matt 
     25  1.2.10.2  matt #endif
     26