/*
 * yepp.h:
 *
 * Copyright (c) 2001 James McKenzie <james@fishsoup.dhs.org>,
 * All rights reserved.
 *
 */

/*
 * $Id: yepplib.h,v 1.10 2001/10/12 13:51:21 root Exp root $
 */

/*
 * $Log: yepplib.h,v $
 * Revision 1.10  2001/10/12 13:51:21  root
 * #
 *
 * Revision 1.8  2001/01/07 22:26:43  root
 * #
 *
 * Revision 1.7  2001/01/06 16:51:57  root
 * #
 *
 * Revision 1.6  2001/01/05 03:41:34  root
 * #
 *
 * Revision 1.5  2001/01/04 22:04:57  root
 * #
 *
 * Revision 1.4  2001/01/04 15:51:12  root
 * #
 *
 * Revision 1.3  2001/01/04 15:51:02  root
 * #
 *
 * Revision 1.2  2001/01/04 13:52:31  root
 * #
 *
 * Revision 1.1  2001/01/04 06:07:21  root
 * #
 *
 * Revision 1.2  2001/01/04 02:57:39  root
 * #
 *
 */

#ifndef __YEPP_H__
#define __YEPP_H__

struct yepp_mem_status
{
  int size;                     //Memory size in 1M chunks

  int free;
};

struct yepp_status
{
  struct yepp_mem_status main, card;
};

struct yepp_dirent
{
  struct yepp_dirent *next;
  int index;
  int type;
  int size;
  char name[515];
  int attr;
  int user;
};


#define YEPP_TYPE_DATA  0x00
#define YEPP_TYPE_MP3   0x01
#define YEPP_TYPE_TEL   0x02
#define YEPP_TYPE_SC4   0x03
#define YEPP_TYPE_RESV  0x04

#define YEPP_WHERE_BASE  0x0
#define YEPP_WHERE_CARD  0x1

#define YEPP_ORDER_LEN 252

#define YEPP_SERIAL_INDEX 0x1
#define YEPP_CONFIG_INDEX 0x2
#define YEPP_ENCODE_INDEX 0x3
#define YEPP_DECODE_INDEX 0x4

#endif /* __YEPP_H__ */
