svn commit: r240272 - head/sys/boot/uboot/lib

Andrey V. Elsukov ae at FreeBSD.org
Sun Sep 9 11:30:46 UTC 2012


Author: ae
Date: Sun Sep  9 11:30:45 2012
New Revision: 240272
URL: http://svn.freebsd.org/changeset/base/240272

Log:
  Make struct uboot_devdesc compatible with struct disk_devdesc.

Modified:
  head/sys/boot/uboot/lib/libuboot.h

Modified: head/sys/boot/uboot/lib/libuboot.h
==============================================================================
--- head/sys/boot/uboot/lib/libuboot.h	Sun Sep  9 09:46:48 2012	(r240271)
+++ head/sys/boot/uboot/lib/libuboot.h	Sun Sep  9 11:30:45 2012	(r240272)
@@ -35,18 +35,15 @@ struct uboot_devdesc
 	union {
 		struct {
 			void	*data;
-			int	pnum;
-			int	ptype;
+			int	slice;
+			int	partition;
+			off_t	offset;
 		} disk;
 	} d_kind;
 };
 
 #define d_disk d_kind.disk
 
-#define PTYPE_BSDLABEL	1
-#define PTYPE_GPT	2
-#define PTYPE_MBR	3
-
 /*
  * Default network packet alignment in memory
  */


More information about the svn-src-head mailing list