Subject: mmem / mlcd
To: None <port-dreamcast@netbsd.org>
From: ITOH Yasufumi <itohy@netbsd.org>
List: port-dreamcast
Date: 11/16/2002 01:05:54
  Folks,

I committed two device drivers.
Both are somewhat experimental.  Use with care.

1. mmem - Maple Bus storage device (memory card)
2. mlcd - Maple Bus monochrome LCD device (screen of VM)

1. mmem
    Currently the disklabel handling is limited (no disklabel write support,
    c partition only).

    example:
	WARNING: This example destroys the content of the memory card.

	# dd if=/dev/rmmem0.0c of=backup.img
	256+0 records in
	256+0 records out
	131072 bytes transferred in 2.120 secs (61826 bytes/sec)
	# /sbin/newfs -I /dev/rmmem0.0c
	/dev/rmmem0.0c: 256 sectors in 32 cylinders of 1 tracks, 8 sectors
		0.1MB in 1 cyl groups (540 c/g, 2.11MB/g, 64 i/g)
	super-block backups (for fsck -b #) at:
	 32,
	newfs: ioctl (WDINFO): Inappropriate ioctl for device
	newfs: /dev/rmmem0.0c: can't rewrite disk label
	# mount /dev/mmem0.0c /mnt
	# df -k /mnt
	Filesystem    1K-blocks     Used     Avail Capacity  Mounted on
	/dev/mmem0.0c        91        0        86     0%    /mnt

2. mlcd
    Experimental.  Needs more work.
    Currently, only writing 192byte (if the device is a Visual Memory)
    bitmap is supported.

    example:
	tr '\0' '\377' </dev/zero | dd bs=192 count=1 of=/dev/mlcd0.0

Enjoy,
-- 
ITOH Yasufumi