199767f8919635c4928607450d9e0abb932109ceToomas Soome * Copyright (c) 1998 Robert Nordier
199767f8919635c4928607450d9e0abb932109ceToomas Soome * Copyright (c) 2010 Pawel Jakub Dawidek <pjd@FreeBSD.org>
199767f8919635c4928607450d9e0abb932109ceToomas Soome * All rights reserved.
199767f8919635c4928607450d9e0abb932109ceToomas Soome * Redistribution and use in source and binary forms are freely
199767f8919635c4928607450d9e0abb932109ceToomas Soome * permitted provided that the above copyright notice and this
199767f8919635c4928607450d9e0abb932109ceToomas Soome * paragraph and the following disclaimer are duplicated in all
199767f8919635c4928607450d9e0abb932109ceToomas Soome * such forms.
199767f8919635c4928607450d9e0abb932109ceToomas Soome * This software is provided "AS IS" and without any express or
199767f8919635c4928607450d9e0abb932109ceToomas Soome * implied warranties, including, without limitation, the implied
199767f8919635c4928607450d9e0abb932109ceToomas Soome * warranties of merchantability and fitness for a particular
199767f8919635c4928607450d9e0abb932109ceToomas Soome#endif /* GPT */
199767f8919635c4928607450d9e0abb932109ceToomas Soomedrvread(struct dsk *dskp, void *buf, daddr_t lba, unsigned nblk)
199767f8919635c4928607450d9e0abb932109ceToomas Soome static unsigned c = 0x2d5c7c2f;
199767f8919635c4928607450d9e0abb932109ceToomas Soome#else /* USE_XREAD */
199767f8919635c4928607450d9e0abb932109ceToomas Soome v86.addr = XREADORG; /* call to xread in boot1 */
199767f8919635c4928607450d9e0abb932109ceToomas Soome#endif /* USE_XREAD */
199767f8919635c4928607450d9e0abb932109ceToomas Soome return (-1);
199767f8919635c4928607450d9e0abb932109ceToomas Soomedrvwrite(struct dsk *dskp, void *buf, daddr_t lba, unsigned nblk)
199767f8919635c4928607450d9e0abb932109ceToomas Soome printf("error %u lba %u\n", v86.eax >> 8 & 0xff, lba);
199767f8919635c4928607450d9e0abb932109ceToomas Soome return (-1);
199767f8919635c4928607450d9e0abb932109ceToomas Soome#endif /* GPT */