Home | History | Annotate | Line # | Download | only in nor
cfi_0002.h revision 1.1
      1 /*	$NetBSD: cfi_0002.h,v 1.1 2011/07/15 19:19:57 cliff Exp $	*/
      2 
      3 #ifndef	_DEV_NOR_CFI_0002_H_
      4 #define	_DEV_NOR_CFI_0002_H_
      5 
      6 /*
      7  * CFI Primary Vendor-specific Extended Query structure
      8  * AMD/Fujitsu Extended Command Set 0002
      9  */
     10 struct cmdset_0002_query_data {
     11     uint8_t	pri[3];			/* { 'P', 'R', 'I' } */
     12     uint8_t	version_maj;		/* major version number (ASCII) */
     13     uint8_t	version_min;		/* minor version number (ASCII) */
     14     uint8_t	asupt;			/* Si rev., addr-sensitive unlock */
     15     uint8_t	erase_susp;		/* erase-suspend */
     16     uint8_t	sector_prot;		/* sector protect */
     17     uint8_t	tmp_sector_unprot;	/* temporary sector unprotect */
     18     uint8_t	sector_prot_scheme;	/* sector protect scheme */
     19     uint8_t	simul_op;		/* simultaneous operation */
     20     uint8_t	burst_mode_type;	/* burst mode type */
     21     uint8_t	page_mode_type;		/* page mode type */
     22     uint8_t	acc_min;		/* Acc supply min voltage */
     23     uint8_t	acc_max;		/* Acc supply max voltage */
     24     uint8_t	wp_prot;		/* WP# protection */
     25     uint8_t	prog_susp;		/* prpogram suspend */
     26     uint8_t	unlock_bypass;		/* unlock bypass */
     27     uint8_t	sss_size;		/* secured silicon sector size (1<<N) */
     28     uint8_t	soft_feat;		/* software features */
     29     uint8_t	page_size;		/* page size (1<<N) */
     30     uint8_t	erase_susp_time_max;	/* erase susp. timeout max, 1<<N usec */
     31     uint8_t	prog_susp_time_max;	/* prog. susp. timeout max, 1<<N usec */
     32     uint8_t	embhwrst_time_max;	/* emb hw rst timeout max, 1<<N usec */
     33     uint8_t	hwrst_time_max;		/* !emb hw rst timeout max, 1<<N usec */
     34 };
     35 
     36 /* forward references for prototype(s) */
     37 struct nor_softc;
     38 struct cfi;
     39 struct nor_chip;
     40 struct cfi_chip;
     41 
     42 extern void cfi_0002_init(struct nor_softc * const, struct cfi * const,
     43 	struct nor_chip * const);
     44 extern void cfi_0002_print(device_t, struct cfi * const);
     45 
     46 #endif	/* _DEV_NOR_CFI_0002_H_ */
     47