aboutsummaryrefslogtreecommitdiff
path: root/external/opal-prd
diff options
context:
space:
mode:
Diffstat (limited to 'external/opal-prd')
-rw-r--r--external/opal-prd/Makefile1
-rw-r--r--external/opal-prd/config.h7
-rw-r--r--external/opal-prd/hostboot-interface.h20
-rw-r--r--external/opal-prd/i2c.c17
-rw-r--r--external/opal-prd/i2c.h3
-rw-r--r--external/opal-prd/module.c17
-rw-r--r--external/opal-prd/module.h17
-rw-r--r--external/opal-prd/opal-prd.c18
-rw-r--r--external/opal-prd/opal-prd.h18
-rw-r--r--external/opal-prd/pnor.c17
-rw-r--r--external/opal-prd/pnor.h3
-rw-r--r--external/opal-prd/test/test_pnor.c17
-rw-r--r--external/opal-prd/test/test_pnor_ops.c3
-rw-r--r--external/opal-prd/thunk.S3
14 files changed, 49 insertions, 112 deletions
diff --git a/external/opal-prd/Makefile b/external/opal-prd/Makefile
index ccd3401..fb9402f 100644
--- a/external/opal-prd/Makefile
+++ b/external/opal-prd/Makefile
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: Apache-2.0
CFLAGS += -m64 -Werror -Wall -g2 -ggdb
LDFLAGS += -m64
ASFLAGS = -m64
diff --git a/external/opal-prd/config.h b/external/opal-prd/config.h
index a132a01..5de618b 100644
--- a/external/opal-prd/config.h
+++ b/external/opal-prd/config.h
@@ -1,4 +1,9 @@
-/* For CCAN */
+// SPDX-License-Identifier: Apache-2.0
+/*
+ * For CCAN
+ *
+ * Copyright 2015 IBM Corp.
+ */
#include <endian.h>
#include <byteswap.h>
diff --git a/external/opal-prd/hostboot-interface.h b/external/opal-prd/hostboot-interface.h
index d571f63..60951fe 100644
--- a/external/opal-prd/hostboot-interface.h
+++ b/external/opal-prd/hostboot-interface.h
@@ -1,23 +1,13 @@
-/* Copyright 2013-2014 IBM Corp.
+// SPDX-License-Identifier: Apache-2.0
+/*
+ * Hostboot runtime interface
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Derived from src/include/runtime/interface.h in Hostboot
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- * implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright 2013-2018 IBM Corp.
*/
#include <stdint.h>
-/* Hostboot runtime interface */
-/* Derived from src/include/runtime/interface.h in Hostboot */
-
#define HOSTBOOT_RUNTIME_INTERFACE_VERSION 0x9002
/** Memory error types defined for memory_error() interface. */
diff --git a/external/opal-prd/i2c.c b/external/opal-prd/i2c.c
index 0c9947c..3cf8868 100644
--- a/external/opal-prd/i2c.c
+++ b/external/opal-prd/i2c.c
@@ -1,17 +1,8 @@
-/* Copyright 2013-2015 IBM Corp.
+// SPDX-License-Identifier: Apache-2.0
+/*
+ * I2C operations for opal-prd
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- * implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright 2013-2018 IBM Corp.
*/
#define _GNU_SOURCE /* for aspritnf */
diff --git a/external/opal-prd/i2c.h b/external/opal-prd/i2c.h
index d31bc0e..bdadec6 100644
--- a/external/opal-prd/i2c.h
+++ b/external/opal-prd/i2c.h
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: Apache-2.0
+/* Copyright 2015 IBM Corp */
+
#ifndef __I2C_H
#define __I2C_H
diff --git a/external/opal-prd/module.c b/external/opal-prd/module.c
index 12fc3f9..6797d4c 100644
--- a/external/opal-prd/module.c
+++ b/external/opal-prd/module.c
@@ -1,17 +1,8 @@
-/* Copyright 2015 IBM Corp.
+// SPDX-License-Identifier: Apache-2.0
+/*
+ * Load kernel modules needed for opal-prd
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- * implied.
- * See the License for the specific language governing permissions and
- * imitations under the License.
+ * Copyright 2015 IBM Corp.
*/
#include <stdlib.h>
diff --git a/external/opal-prd/module.h b/external/opal-prd/module.h
index 3a9e4aa..e55d321 100644
--- a/external/opal-prd/module.h
+++ b/external/opal-prd/module.h
@@ -1,18 +1,5 @@
-/* Copyright 2015 IBM Corp.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- * implied.
- * See the License for the specific language governing permissions and
- * imitations under the License.
- */
+// SPDX-License-Identifier: Apache-2.0
+/* Copyright 2015 IBM Corp. */
#ifndef MODULES_H
#define MODULES_H
diff --git a/external/opal-prd/opal-prd.c b/external/opal-prd/opal-prd.c
index d0a507c..b49d9ae 100644
--- a/external/opal-prd/opal-prd.c
+++ b/external/opal-prd/opal-prd.c
@@ -1,17 +1,11 @@
-/* Copyright 2014-2015 IBM Corp.
+// SPDX-License-Identifier: Apache-2.0
+/*
+ * OPAL Processor Runtime Diagnostics (PRD)
+ * Runs Hostboot RunTime (HBRT) code in a userspace wrapper
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Firmware in userspace? Brilliant!
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- * implied.
- * See the License for the specific language governing permissions and
- * imitations under the License.
+ * Copyright 2014-2019 IBM Corp.
*/
#define _GNU_SOURCE
diff --git a/external/opal-prd/opal-prd.h b/external/opal-prd/opal-prd.h
index f37b18b..17333d2 100644
--- a/external/opal-prd/opal-prd.h
+++ b/external/opal-prd/opal-prd.h
@@ -1,18 +1,6 @@
-/* Copyright 2015 IBM Corp.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- * implied.
- * See the License for the specific language governing permissions and
- * imitations under the License.
- */
+// SPDX-License-Identifier: Apache-2.0
+/* Copyright 2015 IBM Corp. */
+
#ifndef OPAL_PRD_H
#define OPAL_PRD_H
diff --git a/external/opal-prd/pnor.c b/external/opal-prd/pnor.c
index c032421..6ddc2b5 100644
--- a/external/opal-prd/pnor.c
+++ b/external/opal-prd/pnor.c
@@ -1,17 +1,8 @@
-/* Copyright 2013-2015 IBM Corp.
+// SPDX-License-Identifier: Apache-2.0
+/*
+ * PNOR Access (/dev/mtd) for opal-prd
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- * implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright 2013-2017 IBM Corp.
*/
#include <libflash/libffs.h>
diff --git a/external/opal-prd/pnor.h b/external/opal-prd/pnor.h
index 28571af..0d25325 100644
--- a/external/opal-prd/pnor.h
+++ b/external/opal-prd/pnor.h
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: Apache-2.0
+/* Copyright 2015-2017 IBM Corp */
+
#ifndef PNOR_H
#define PNOR_H
diff --git a/external/opal-prd/test/test_pnor.c b/external/opal-prd/test/test_pnor.c
index 84e4231..4e599e5 100644
--- a/external/opal-prd/test/test_pnor.c
+++ b/external/opal-prd/test/test_pnor.c
@@ -1,18 +1,5 @@
-/* Copyright 2013-2015 IBM Corp.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- * implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
+// SPDX-License-Identifier: Apache-2.0
+/* Copyright 2013-2015 IBM Corp. */
#include <stdarg.h>
#include <stdio.h>
diff --git a/external/opal-prd/test/test_pnor_ops.c b/external/opal-prd/test/test_pnor_ops.c
index fd5e2c2..ab05930 100644
--- a/external/opal-prd/test/test_pnor_ops.c
+++ b/external/opal-prd/test/test_pnor_ops.c
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: Apache-2.0
+/* Copyright 2015-2016 IBM Corp */
+
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
diff --git a/external/opal-prd/thunk.S b/external/opal-prd/thunk.S
index d0ccd64..227607c 100644
--- a/external/opal-prd/thunk.S
+++ b/external/opal-prd/thunk.S
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: Apache-2.0
+/* Copyright 2015-2017 IBM Corp */
+
#include <endian.h>
#include <asm/unistd.h>