[BACK]Return to bpb.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / fs / msdosfs

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/fs/msdosfs/bpb.h between version 1.3 and 1.3.12.2

version 1.3, 2004/06/30 03:43:14 version 1.3.12.2, 2006/12/30 20:49:56
Line 16 
Line 16 
  * October 1992   * October 1992
  */   */
   
   #ifndef _MSDOSFS_BPB_H_
   #define _MSDOSFS_BPB_H_
   
 /*  /*
  * BIOS Parameter Block (BPB) for DOS 3.3   * BIOS Parameter Block (BPB) for DOS 3.3
  */   */
Line 124  struct bpb_a {
Line 127  struct bpb_a {
 #define putushort(p, v) (void)(*__ICAST(,16,p) = (v))  #define putushort(p, v) (void)(*__ICAST(,16,p) = (v))
 #define putulong(p, v)  (void)(*__ICAST(,32,p) = (v))  #define putulong(p, v)  (void)(*__ICAST(,32,p) = (v))
 #else  #else
 #define getushort(x)    (__ICAST(const,8,x)[0] + (__ICAST(const,8,x)[1] << 8))  #define getushort(x)    ((u_int16_t)(__ICAST(const,8,x)[0] \
 #define getulong(x)     (__ICAST(const,8,x)[0] + (__ICAST(const,8,x)[1] << 8) \                           | (__ICAST(const,8,x)[1] << 8)))
                          + (__ICAST(const,8,x)[2] << 16)        \  #define getulong(x)     ((u_int32_t)(__ICAST(const,8,x)[0] \
                          + (__ICAST(const,8,x)[3] << 24))                           | (__ICAST(const,8,x)[1] << 8) \
 #define putushort(p, v) (__ICAST(,8,p)[0] = (v),        \                           | (__ICAST(const,8,x)[2] << 16) \
                            | (__ICAST(const,8,x)[3] << 24)))
   #define putushort(p, v) (void)(__ICAST(,8,p)[0] = (v),  \
                          __ICAST(,8,p)[1] = (v) >> 8)                           __ICAST(,8,p)[1] = (v) >> 8)
 #define putulong(p, v)  (__ICAST(,8,p)[0] = (v),        \  #define putulong(p, v)  (void)(__ICAST(,8,p)[0] = (v),  \
                          __ICAST(,8,p)[1] = (v) >> 8, \                           __ICAST(,8,p)[1] = (v) >> 8, \
                          __ICAST(,8,p)[2] = (v) >> 16,\                           __ICAST(,8,p)[2] = (v) >> 16,\
                          __ICAST(,8,p)[3] = (v) >> 24)                           __ICAST(,8,p)[3] = (v) >> 24)
Line 211  struct fsinfo {
Line 216  struct fsinfo {
         u_int8_t fsifill3[508];          u_int8_t fsifill3[508];
         u_int8_t fsisig4[4];          u_int8_t fsisig4[4];
 };  };
   #endif /* _MSDOSFS_BPB_H_ */

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.3.12.2

CVSweb <webmaster@jp.NetBSD.org>