Index: uspace/drv/intctl/apic/apic.c
===================================================================
--- uspace/drv/intctl/apic/apic.c	(revision dd8ab1cacb307cb1ac01aa4918c789d13e112e56)
+++ uspace/drv/intctl/apic/apic.c	(revision 2b3dd78e52704a51e22b71513327373cf8f6a614)
@@ -140,5 +140,5 @@
 }
 
-static int apic_enable_irq(apic_t *apic, sysarg_t irq)
+static errno_t apic_enable_irq(apic_t *apic, sysarg_t irq)
 {
 	io_redirection_reg_t reg;
@@ -207,10 +207,10 @@
 
 /** Add APIC device. */
-int apic_add(apic_t *apic, apic_res_t *res)
+errno_t apic_add(apic_t *apic, apic_res_t *res)
 {
 	sysarg_t have_apic;
 	ddf_fun_t *fun_a = NULL;
 	void *regs;
-	int rc;
+	errno_t rc;
 	
 	if ((sysinfo_get_value("apic", &have_apic) != EOK) || (!have_apic)) {
@@ -254,5 +254,5 @@
 
 /** Remove APIC device */
-int apic_remove(apic_t *apic)
+errno_t apic_remove(apic_t *apic)
 {
 	return ENOTSUP;
@@ -260,5 +260,5 @@
 
 /** APIC device gone */
-int apic_gone(apic_t *apic)
+errno_t apic_gone(apic_t *apic)
 {
 	return ENOTSUP;
Index: uspace/drv/intctl/apic/apic.h
===================================================================
--- uspace/drv/intctl/apic/apic.h	(revision dd8ab1cacb307cb1ac01aa4918c789d13e112e56)
+++ uspace/drv/intctl/apic/apic.h	(revision 2b3dd78e52704a51e22b71513327373cf8f6a614)
@@ -52,7 +52,7 @@
 } apic_t;
 
-extern int apic_add(apic_t *, apic_res_t *);
-extern int apic_remove(apic_t *);
-extern int apic_gone(apic_t *);
+extern errno_t apic_add(apic_t *, apic_res_t *);
+extern errno_t apic_remove(apic_t *);
+extern errno_t apic_gone(apic_t *);
 
 #endif
Index: uspace/drv/intctl/apic/main.c
===================================================================
--- uspace/drv/intctl/apic/main.c	(revision dd8ab1cacb307cb1ac01aa4918c789d13e112e56)
+++ uspace/drv/intctl/apic/main.c	(revision 2b3dd78e52704a51e22b71513327373cf8f6a614)
@@ -43,9 +43,9 @@
 #define NAME  "apic"
 
-static int apic_dev_add(ddf_dev_t *dev);
-static int apic_dev_remove(ddf_dev_t *dev);
-static int apic_dev_gone(ddf_dev_t *dev);
-static int apic_fun_online(ddf_fun_t *fun);
-static int apic_fun_offline(ddf_fun_t *fun);
+static errno_t apic_dev_add(ddf_dev_t *dev);
+static errno_t apic_dev_remove(ddf_dev_t *dev);
+static errno_t apic_dev_gone(ddf_dev_t *dev);
+static errno_t apic_fun_online(ddf_fun_t *fun);
+static errno_t apic_fun_offline(ddf_fun_t *fun);
 
 static driver_ops_t driver_ops = {
@@ -62,9 +62,9 @@
 };
 
-static int apic_get_res(ddf_dev_t *dev, apic_res_t *res)
+static errno_t apic_get_res(ddf_dev_t *dev, apic_res_t *res)
 {
 	async_sess_t *parent_sess;
 	hw_res_list_parsed_t hw_res;
-	int rc;
+	errno_t rc;
 
 	parent_sess = ddf_dev_parent_sess_get(dev);
@@ -90,9 +90,9 @@
 }
 
-static int apic_dev_add(ddf_dev_t *dev)
+static errno_t apic_dev_add(ddf_dev_t *dev)
 {
 	apic_t *apic;
 	apic_res_t apic_res;
-	int rc;
+	errno_t rc;
 
         ddf_msg(LVL_DEBUG, "apic_dev_add(%p)", dev);
@@ -114,5 +114,5 @@
 }
 
-static int apic_dev_remove(ddf_dev_t *dev)
+static errno_t apic_dev_remove(ddf_dev_t *dev)
 {
         apic_t *apic = (apic_t *)ddf_dev_data_get(dev);
@@ -123,5 +123,5 @@
 }
 
-static int apic_dev_gone(ddf_dev_t *dev)
+static errno_t apic_dev_gone(ddf_dev_t *dev)
 {
         apic_t *apic = (apic_t *)ddf_dev_data_get(dev);
@@ -132,5 +132,5 @@
 }
 
-static int apic_fun_online(ddf_fun_t *fun)
+static errno_t apic_fun_online(ddf_fun_t *fun)
 {
         ddf_msg(LVL_DEBUG, "apic_fun_online()");
@@ -138,5 +138,5 @@
 }
 
-static int apic_fun_offline(ddf_fun_t *fun)
+static errno_t apic_fun_offline(ddf_fun_t *fun)
 {
         ddf_msg(LVL_DEBUG, "apic_fun_offline()");
Index: uspace/drv/intctl/i8259/i8259.c
===================================================================
--- uspace/drv/intctl/i8259/i8259.c	(revision dd8ab1cacb307cb1ac01aa4918c789d13e112e56)
+++ uspace/drv/intctl/i8259/i8259.c	(revision 2b3dd78e52704a51e22b71513327373cf8f6a614)
@@ -64,5 +64,5 @@
 #define PIC_MAX_IRQ  15
 
-static int pic_enable_irq(i8259_t *i8259, sysarg_t irq)
+static errno_t pic_enable_irq(i8259_t *i8259, sysarg_t irq)
 {
 	if (irq > PIC_MAX_IRQ)
@@ -136,5 +136,5 @@
 
 /** Add i8259 device. */
-int i8259_add(i8259_t *i8259, i8259_res_t *res)
+errno_t i8259_add(i8259_t *i8259, i8259_res_t *res)
 {
 	sysarg_t have_i8259;
@@ -142,5 +142,5 @@
 	ioport8_t *regs1;
 	ddf_fun_t *fun_a = NULL;
-	int rc;
+	errno_t rc;
 	
 	if ((sysinfo_get_value("i8259", &have_i8259) != EOK) || (!have_i8259)) {
@@ -187,5 +187,5 @@
 
 /** Remove i8259 device */
-int i8259_remove(i8259_t *i8259)
+errno_t i8259_remove(i8259_t *i8259)
 {
 	return ENOTSUP;
@@ -193,5 +193,5 @@
 
 /** i8259 device gone */
-int i8259_gone(i8259_t *i8259)
+errno_t i8259_gone(i8259_t *i8259)
 {
 	return ENOTSUP;
Index: uspace/drv/intctl/i8259/i8259.h
===================================================================
--- uspace/drv/intctl/i8259/i8259.h	(revision dd8ab1cacb307cb1ac01aa4918c789d13e112e56)
+++ uspace/drv/intctl/i8259/i8259.h	(revision 2b3dd78e52704a51e22b71513327373cf8f6a614)
@@ -52,7 +52,7 @@
 } i8259_t;
 
-extern int i8259_add(i8259_t *, i8259_res_t *);
-extern int i8259_remove(i8259_t *);
-extern int i8259_gone(i8259_t *);
+extern errno_t i8259_add(i8259_t *, i8259_res_t *);
+extern errno_t i8259_remove(i8259_t *);
+extern errno_t i8259_gone(i8259_t *);
 
 #endif
Index: uspace/drv/intctl/i8259/main.c
===================================================================
--- uspace/drv/intctl/i8259/main.c	(revision dd8ab1cacb307cb1ac01aa4918c789d13e112e56)
+++ uspace/drv/intctl/i8259/main.c	(revision 2b3dd78e52704a51e22b71513327373cf8f6a614)
@@ -43,9 +43,9 @@
 #define NAME  "i8259"
 
-static int i8259_dev_add(ddf_dev_t *dev);
-static int i8259_dev_remove(ddf_dev_t *dev);
-static int i8259_dev_gone(ddf_dev_t *dev);
-static int i8259_fun_online(ddf_fun_t *fun);
-static int i8259_fun_offline(ddf_fun_t *fun);
+static errno_t i8259_dev_add(ddf_dev_t *dev);
+static errno_t i8259_dev_remove(ddf_dev_t *dev);
+static errno_t i8259_dev_gone(ddf_dev_t *dev);
+static errno_t i8259_fun_online(ddf_fun_t *fun);
+static errno_t i8259_fun_offline(ddf_fun_t *fun);
 
 static driver_ops_t driver_ops = {
@@ -62,9 +62,9 @@
 };
 
-static int i8259_get_res(ddf_dev_t *dev, i8259_res_t *res)
+static errno_t i8259_get_res(ddf_dev_t *dev, i8259_res_t *res)
 {
 	async_sess_t *parent_sess;
 	hw_res_list_parsed_t hw_res;
-	int rc;
+	errno_t rc;
 
 	parent_sess = ddf_dev_parent_sess_get(dev);
@@ -91,9 +91,9 @@
 }
 
-static int i8259_dev_add(ddf_dev_t *dev)
+static errno_t i8259_dev_add(ddf_dev_t *dev)
 {
 	i8259_t *i8259;
 	i8259_res_t i8259_res;
-	int rc;
+	errno_t rc;
 
         ddf_msg(LVL_DEBUG, "i8259_dev_add(%p)", dev);
@@ -115,5 +115,5 @@
 }
 
-static int i8259_dev_remove(ddf_dev_t *dev)
+static errno_t i8259_dev_remove(ddf_dev_t *dev)
 {
         i8259_t *i8259 = (i8259_t *)ddf_dev_data_get(dev);
@@ -124,5 +124,5 @@
 }
 
-static int i8259_dev_gone(ddf_dev_t *dev)
+static errno_t i8259_dev_gone(ddf_dev_t *dev)
 {
         i8259_t *i8259 = (i8259_t *)ddf_dev_data_get(dev);
@@ -133,5 +133,5 @@
 }
 
-static int i8259_fun_online(ddf_fun_t *fun)
+static errno_t i8259_fun_online(ddf_fun_t *fun)
 {
         ddf_msg(LVL_DEBUG, "i8259_fun_online()");
@@ -139,5 +139,5 @@
 }
 
-static int i8259_fun_offline(ddf_fun_t *fun)
+static errno_t i8259_fun_offline(ddf_fun_t *fun)
 {
         ddf_msg(LVL_DEBUG, "i8259_fun_offline()");
Index: uspace/drv/intctl/icp-ic/icp-ic.c
===================================================================
--- uspace/drv/intctl/icp-ic/icp-ic.c	(revision dd8ab1cacb307cb1ac01aa4918c789d13e112e56)
+++ uspace/drv/intctl/icp-ic/icp-ic.c	(revision 2b3dd78e52704a51e22b71513327373cf8f6a614)
@@ -52,5 +52,5 @@
 };
 
-static int icpic_enable_irq(icpic_t *icpic, sysarg_t irq)
+static errno_t icpic_enable_irq(icpic_t *icpic, sysarg_t irq)
 {
 	if (irq > icpic_max_irq)
@@ -112,9 +112,9 @@
 
 /** Add icp-ic device. */
-int icpic_add(icpic_t *icpic, icpic_res_t *res)
+errno_t icpic_add(icpic_t *icpic, icpic_res_t *res)
 {
 	ddf_fun_t *fun_a = NULL;
 	void *regs;
-	int rc;
+	errno_t rc;
 
 	rc = pio_enable((void *)res->base, sizeof(icpic_regs_t), &regs);
@@ -153,5 +153,5 @@
 
 /** Remove icp-ic device */
-int icpic_remove(icpic_t *icpic)
+errno_t icpic_remove(icpic_t *icpic)
 {
 	return ENOTSUP;
@@ -159,5 +159,5 @@
 
 /** icp-ic device gone */
-int icpic_gone(icpic_t *icpic)
+errno_t icpic_gone(icpic_t *icpic)
 {
 	return ENOTSUP;
Index: uspace/drv/intctl/icp-ic/icp-ic.h
===================================================================
--- uspace/drv/intctl/icp-ic/icp-ic.h	(revision dd8ab1cacb307cb1ac01aa4918c789d13e112e56)
+++ uspace/drv/intctl/icp-ic/icp-ic.h	(revision 2b3dd78e52704a51e22b71513327373cf8f6a614)
@@ -53,7 +53,7 @@
 } icpic_t;
 
-extern int icpic_add(icpic_t *, icpic_res_t *);
-extern int icpic_remove(icpic_t *);
-extern int icpic_gone(icpic_t *);
+extern errno_t icpic_add(icpic_t *, icpic_res_t *);
+extern errno_t icpic_remove(icpic_t *);
+extern errno_t icpic_gone(icpic_t *);
 
 #endif
Index: uspace/drv/intctl/icp-ic/main.c
===================================================================
--- uspace/drv/intctl/icp-ic/main.c	(revision dd8ab1cacb307cb1ac01aa4918c789d13e112e56)
+++ uspace/drv/intctl/icp-ic/main.c	(revision 2b3dd78e52704a51e22b71513327373cf8f6a614)
@@ -43,9 +43,9 @@
 #define NAME  "icp-ic"
 
-static int icpic_dev_add(ddf_dev_t *dev);
-static int icpic_dev_remove(ddf_dev_t *dev);
-static int icpic_dev_gone(ddf_dev_t *dev);
-static int icpic_fun_online(ddf_fun_t *fun);
-static int icpic_fun_offline(ddf_fun_t *fun);
+static errno_t icpic_dev_add(ddf_dev_t *dev);
+static errno_t icpic_dev_remove(ddf_dev_t *dev);
+static errno_t icpic_dev_gone(ddf_dev_t *dev);
+static errno_t icpic_fun_online(ddf_fun_t *fun);
+static errno_t icpic_fun_offline(ddf_fun_t *fun);
 
 static driver_ops_t driver_ops = {
@@ -62,9 +62,9 @@
 };
 
-static int icpic_get_res(ddf_dev_t *dev, icpic_res_t *res)
+static errno_t icpic_get_res(ddf_dev_t *dev, icpic_res_t *res)
 {
 	async_sess_t *parent_sess;
 	hw_res_list_parsed_t hw_res;
-	int rc;
+	errno_t rc;
 
 	parent_sess = ddf_dev_parent_sess_get(dev);
@@ -90,9 +90,9 @@
 }
 
-static int icpic_dev_add(ddf_dev_t *dev)
+static errno_t icpic_dev_add(ddf_dev_t *dev)
 {
 	icpic_t *icpic;
 	icpic_res_t icpic_res;
-	int rc;
+	errno_t rc;
 
         ddf_msg(LVL_DEBUG, "icpic_dev_add(%p)", dev);
@@ -114,5 +114,5 @@
 }
 
-static int icpic_dev_remove(ddf_dev_t *dev)
+static errno_t icpic_dev_remove(ddf_dev_t *dev)
 {
         icpic_t *icpic = (icpic_t *)ddf_dev_data_get(dev);
@@ -123,5 +123,5 @@
 }
 
-static int icpic_dev_gone(ddf_dev_t *dev)
+static errno_t icpic_dev_gone(ddf_dev_t *dev)
 {
         icpic_t *icpic = (icpic_t *)ddf_dev_data_get(dev);
@@ -132,5 +132,5 @@
 }
 
-static int icpic_fun_online(ddf_fun_t *fun)
+static errno_t icpic_fun_online(ddf_fun_t *fun)
 {
         ddf_msg(LVL_DEBUG, "icpic_fun_online()");
@@ -138,5 +138,5 @@
 }
 
-static int icpic_fun_offline(ddf_fun_t *fun)
+static errno_t icpic_fun_offline(ddf_fun_t *fun)
 {
         ddf_msg(LVL_DEBUG, "icpic_fun_offline()");
Index: uspace/drv/intctl/obio/main.c
===================================================================
--- uspace/drv/intctl/obio/main.c	(revision dd8ab1cacb307cb1ac01aa4918c789d13e112e56)
+++ uspace/drv/intctl/obio/main.c	(revision 2b3dd78e52704a51e22b71513327373cf8f6a614)
@@ -43,9 +43,9 @@
 #define NAME  "obio"
 
-static int obio_dev_add(ddf_dev_t *dev);
-static int obio_dev_remove(ddf_dev_t *dev);
-static int obio_dev_gone(ddf_dev_t *dev);
-static int obio_fun_online(ddf_fun_t *fun);
-static int obio_fun_offline(ddf_fun_t *fun);
+static errno_t obio_dev_add(ddf_dev_t *dev);
+static errno_t obio_dev_remove(ddf_dev_t *dev);
+static errno_t obio_dev_gone(ddf_dev_t *dev);
+static errno_t obio_fun_online(ddf_fun_t *fun);
+static errno_t obio_fun_offline(ddf_fun_t *fun);
 
 static driver_ops_t driver_ops = {
@@ -62,9 +62,9 @@
 };
 
-static int obio_get_res(ddf_dev_t *dev, obio_res_t *res)
+static errno_t obio_get_res(ddf_dev_t *dev, obio_res_t *res)
 {
 	async_sess_t *parent_sess;
 	hw_res_list_parsed_t hw_res;
-	int rc;
+	errno_t rc;
 
 	parent_sess = ddf_dev_parent_sess_get(dev);
@@ -90,9 +90,9 @@
 }
 
-static int obio_dev_add(ddf_dev_t *dev)
+static errno_t obio_dev_add(ddf_dev_t *dev)
 {
 	obio_t *obio;
 	obio_res_t obio_res;
-	int rc;
+	errno_t rc;
 
 	ddf_msg(LVL_DEBUG, "obio_dev_add(%p)", dev);
@@ -114,5 +114,5 @@
 }
 
-static int obio_dev_remove(ddf_dev_t *dev)
+static errno_t obio_dev_remove(ddf_dev_t *dev)
 {
         obio_t *obio = (obio_t *)ddf_dev_data_get(dev);
@@ -123,5 +123,5 @@
 }
 
-static int obio_dev_gone(ddf_dev_t *dev)
+static errno_t obio_dev_gone(ddf_dev_t *dev)
 {
         obio_t *obio = (obio_t *)ddf_dev_data_get(dev);
@@ -132,5 +132,5 @@
 }
 
-static int obio_fun_online(ddf_fun_t *fun)
+static errno_t obio_fun_online(ddf_fun_t *fun)
 {
         ddf_msg(LVL_DEBUG, "obio_fun_online()");
@@ -138,5 +138,5 @@
 }
 
-static int obio_fun_offline(ddf_fun_t *fun)
+static errno_t obio_fun_offline(ddf_fun_t *fun)
 {
         ddf_msg(LVL_DEBUG, "obio_fun_offline()");
Index: uspace/drv/intctl/obio/obio.c
===================================================================
--- uspace/drv/intctl/obio/obio.c	(revision dd8ab1cacb307cb1ac01aa4918c789d13e112e56)
+++ uspace/drv/intctl/obio/obio.c	(revision 2b3dd78e52704a51e22b71513327373cf8f6a614)
@@ -114,8 +114,8 @@
 
 /** Add OBIO device. */
-int obio_add(obio_t *obio, obio_res_t *res)
+errno_t obio_add(obio_t *obio, obio_res_t *res)
 {
 	ddf_fun_t *fun_a = NULL;
-	int rc;
+	errno_t rc;
 
 	rc = pio_enable((void *)res->base, OBIO_SIZE, (void **) &obio->regs);
@@ -155,5 +155,5 @@
 
 /** Remove OBIO device */
-int obio_remove(obio_t *obio)
+errno_t obio_remove(obio_t *obio)
 {
 	return ENOTSUP;
@@ -161,5 +161,5 @@
 
 /** OBIO device gone */
-int obio_gone(obio_t *obio)
+errno_t obio_gone(obio_t *obio)
 {
 	return ENOTSUP;
Index: uspace/drv/intctl/obio/obio.h
===================================================================
--- uspace/drv/intctl/obio/obio.h	(revision dd8ab1cacb307cb1ac01aa4918c789d13e112e56)
+++ uspace/drv/intctl/obio/obio.h	(revision 2b3dd78e52704a51e22b71513327373cf8f6a614)
@@ -52,7 +52,7 @@
 } obio_t;
 
-extern int obio_add(obio_t *, obio_res_t *);
-extern int obio_remove(obio_t *);
-extern int obio_gone(obio_t *);
+extern errno_t obio_add(obio_t *, obio_res_t *);
+extern errno_t obio_remove(obio_t *);
+extern errno_t obio_gone(obio_t *);
 
 #endif
