Index: uspace/lib/device/include/hr.h
===================================================================
--- uspace/lib/device/include/hr.h	(revision 68c966e1cb7a84eed42455def54ec97cf5279e73)
+++ uspace/lib/device/include/hr.h	(revision 978130a335e8e02a54dd7ff837eccde455df0feb)
@@ -46,16 +46,15 @@
 #define HR_DEVNAME_LEN 32
 
+typedef enum hr_level {
+	HR_LVL_0	= 0x00, /* striping, no redundancy */
+	HR_LVL_1	= 0x01, /* n-way mirroring */
+	HR_LVL_4	= 0x04, /* dedicated parity */
+	HR_LVL_5	= 0x05, /* distributed parity */
+	HR_LVL_UNKNOWN	= 0xFF
+} hr_level_t;
+
 typedef struct hr {
 	async_sess_t *sess;
 } hr_t;
-
-typedef enum hr_level {
-	hr_l_0 = 0,
-	hr_l_1 = 1,
-	hr_l_4 = 4,
-	hr_l_5 = 5,
-	hr_l_linear = 254,
-	hr_l_empty = 255
-} hr_level_t;
 
 typedef struct hr_config {
Index: uspace/lib/device/src/hr.c
===================================================================
--- uspace/lib/device/src/hr.c	(revision 68c966e1cb7a84eed42455def54ec97cf5279e73)
+++ uspace/lib/device/src/hr.c	(revision 978130a335e8e02a54dd7ff837eccde455df0feb)
@@ -131,5 +131,5 @@
 
 	printf("level: %d\n", vol_info->level);
-	if (vol_info->level == hr_l_0 || vol_info->level == hr_l_4) {
+	if (vol_info->level == HR_LVL_0 || vol_info->level == HR_LVL_4) {
 		if (vol_info->strip_size / 1024 < 1)
 			printf("strip size in bytes: %u\n",
@@ -144,5 +144,5 @@
 	printf("block size: %zu\n", vol_info->bsize);
 
-	if (vol_info->level == hr_l_4)
+	if (vol_info->level == HR_LVL_4)
 		printf("extents: [P] [status] [index] [devname]\n");
 	else
@@ -153,7 +153,7 @@
 		if (rc != EOK)
 			return rc;
-		if (i == 0 && vol_info->level == hr_l_4)
+		if (i == 0 && vol_info->level == HR_LVL_4)
 			printf("          P   %d        %zu       %s\n", ext->status, i, devname);
-		else if (vol_info->level == hr_l_4)
+		else if (vol_info->level == HR_LVL_4)
 			printf("              %d        %zu       %s\n", ext->status, i, devname);
 		else
