summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2011-08-11 13:30:16 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2011-08-17 12:28:02 -0500
commit20b03fdaeb7414fdf9d43634976ca1ab5fbac7f1 (patch)
tree68944cdfb04e9468eeffe81e9b1ab71cf4475d2f /src/include
parenteede7fac946b94294433c675a6ed6c135a53b4fc (diff)
downloadtalos-hostboot-20b03fdaeb7414fdf9d43634976ca1ab5fbac7f1.tar.gz
talos-hostboot-20b03fdaeb7414fdf9d43634976ca1ab5fbac7f1.zip
Finishing up PNOR RP code (RTC Task 3440)
-Add calls to mm_alloc_block -Fix error responses to message -Cleanup some error handling -Code review updates Final piece of the PNOR puzzle - Task 3389 -Also added a check to autocitest that will catch initialization fails. -Added some error printks to message interface -Disabled test_messageReadWrite testcase Change-Id: I4f1207138a6cf4f86cf2b6f3f81fc5885b02699d Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/252 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/errno.h5
-rw-r--r--src/include/sys/rp.h27
-rw-r--r--src/include/usr/pnor/pnor_reasoncodes.H9
3 files changed, 12 insertions, 29 deletions
diff --git a/src/include/errno.h b/src/include/errno.h
index 8833457ee..8fe67c672 100644
--- a/src/include/errno.h
+++ b/src/include/errno.h
@@ -1,8 +1,11 @@
#ifndef _ERRNO_H
#define _ERRNO_H
+#define EIO 5 // I/O error
#define EAGAIN 11 // Try again
-#define EWOULDBLOCK EAGAIN // operation would block
+#define EFAULT 14 // Bad address
#define EINVAL 22 // Invalid argument
+#define EWOULDBLOCK EAGAIN // operation would block
+
#endif
diff --git a/src/include/sys/rp.h b/src/include/sys/rp.h
deleted file mode 100644
index d3ec0c772..000000000
--- a/src/include/sys/rp.h
+++ /dev/null
@@ -1,27 +0,0 @@
-/**
- * Contains constants needed for the Resource Providers
- */
-namespace RP
-{
- /**
- * Message IDs
- */
- enum Messages
- {
- /**
- * Read 1 page of data from the RP
- * data[0] = address to copy into (user buffer)
- * data[1] = address to copy from (effective address)
- */
- READ_PAGE,
-
- /**
- * Write 1 page of data from the RP
- * data[0] = address to copy from (user buffer)
- * data[1] = address to copy into (effective address)
- */
- WRITE_PAGE,
- };
-
-
-};
diff --git a/src/include/usr/pnor/pnor_reasoncodes.H b/src/include/usr/pnor/pnor_reasoncodes.H
index 3b45e94e1..b72966b0a 100644
--- a/src/include/usr/pnor/pnor_reasoncodes.H
+++ b/src/include/usr/pnor/pnor_reasoncodes.H
@@ -11,7 +11,12 @@ namespace PNOR
MOD_PNORRP_COMPUTEDEVICEADDR = 0x02, /**< pnorrp.C : PnorRP::computeDeviceAddr */
MOD_PNORRP_GETSECTIONINFO = 0x03, /**< pnorrp.C : PnorRP::getSectionInfo */
MOD_PNORRP_COMPUTESECTION = 0x04, /**< pnorrp.C : PnorRP::computeSection */
- MOD_PNORDD_VERIFYADDRESSRANGE = 0x05 /**< pnordd.C : PnorDD::verifyAddressRange */
+ MOD_PNORRP_INITDAEMON = 0x05, /**< pnorrp.C : PnorRP::initDaemon */
+ MOD_PNORRP_READTOC = 0x06, /**< pnorrp.C : PnorRP::readTOC */
+ MOD_PNORRP_READFROMDEVICE = 0x07, /**< pnorrp.C : PnorRP::readFromDevice */
+ MOD_PNORRP_WRITETODEVICE = 0x08, /**< pnorrp.C : PnorRP::writeToDevice */
+
+ MOD_PNORDD_VERIFYADDRESSRANGE = 0x11 /**< pnordd.C : PnorDD::verifyAddressRange */
};
enum PNORReasonCode
@@ -19,6 +24,8 @@ namespace PNOR
RC_INVALID_MESSAGE = PNOR_COMP_ID | 0x01,
RC_INVALID_ADDRESS = PNOR_COMP_ID | 0x02,
RC_INVALID_SECTION = PNOR_COMP_ID | 0x03,
+ RC_EXTERNAL_ERROR = PNOR_COMP_ID | 0x04,
+ RC_STARTUP_FAIL = PNOR_COMP_ID | 0x05,
};
};
OpenPOWER on IntegriCloud