1214921Scognet/* $NetBSD: cd9660_archimedes.h,v 1.1 2009/01/10 22:06:29 bjh21 Exp $ */
2214921Scognet
3214921Scognet/*-
4214921Scognet * Copyright (c) 1998, 2009 Ben Harris
5214921Scognet * All rights reserved.
6214921Scognet *
7214921Scognet * Redistribution and use in source and binary forms, with or without
8214921Scognet * modification, are permitted provided that the following conditions
9214921Scognet * are met:
10214921Scognet * 1. Redistributions of source code must retain the above copyright
11214921Scognet *    notice, this list of conditions and the following disclaimer.
12214921Scognet * 2. Redistributions in binary form must reproduce the above copyright
13214921Scognet *    notice, this list of conditions and the following disclaimer in the
14214921Scognet *    documentation and/or other materials provided with the distribution.
15214921Scognet * 3. The name of the author may not be used to endorse or promote products
16214921Scognet *    derived from this software without specific prior written permission.
17214921Scognet *
18214921Scognet * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19214921Scognet * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20214921Scognet * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21214921Scognet * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22214921Scognet * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23214921Scognet * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24214921Scognet * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25214921Scognet * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26214921Scognet * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27214921Scognet * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28214921Scognet */
29214921Scognet/*
30214921Scognet * cd9660_archimedes.c - support for RISC OS "ARCHIMEDES" extension
31214921Scognet *
32214921Scognet * $FreeBSD$
33214921Scognet */
34214921Scognet
35214921Scognetstruct ISO_ARCHIMEDES {
36214921Scognet	char		magic[10];	/* "ARCHIMEDES" */
37214921Scognet	unsigned char	loadaddr[4];	/* Load address, little-endian */
38214921Scognet	unsigned char	execaddr[4];	/* Exec address, little-endian */
39214921Scognet	unsigned char	ro_attr;	/* RISC OS attributes */
40214921Scognet#define RO_ACCESS_UR	0x01 /* Owner read */
41214921Scognet#define RO_ACCESS_UW	0x02 /* Owner write */
42214921Scognet#define RO_ACCESS_L	0x04 /* Locked */
43214921Scognet#define RO_ACCESS_OR	0x10 /* Public read */
44214921Scognet#define RO_ACCESS_OW	0x20 /* Public write */
45214921Scognet	unsigned char	cdfs_attr;	/* Extra attributes for CDFS */
46214921Scognet#define CDFS_PLING	0x01	/* Filename begins with '!' */
47214921Scognet	char		reserved[12];
48214921Scognet};
49214921Scognet
50214921Scognetextern void archimedes_convert_tree(cd9660node *);
51