]> Joshua Wise's Git repositories - netwatch.git/commitdiff
add a lot of copyright headers
authorJacob Potter <jdpotter@andrew.cmu.edu>
Tue, 16 Dec 2008 19:44:24 +0000 (14:44 -0500)
committerJacob Potter <jdpotter@andrew.cmu.edu>
Tue, 16 Dec 2008 19:44:24 +0000 (14:44 -0500)
32 files changed:
include/raw/stdarg.h
include/raw/stdint.h
include/reg-82801b.h
include/reg-82815.h
include/serial.h
include/smi.h
include/string.h
include/text.h
include/timer.h
include/vga-overlay.h
lib/console.c
lib/minilib.c
lib/serial.c
net/etherboot-compat.h
net/net.c
net/net.h
net/rfb.c
net/rfb.h
netwatch/drivers.c
netwatch/entry.asm
netwatch/firstrun.c
netwatch/keyboard.c
netwatch/main.c
netwatch/packet.c
netwatch/packet.h
netwatch/pagingstub-asm.s
netwatch/pagingstub.c
netwatch/smi.c
netwatch/traps.c
netwatch/traps.h
netwatch/vga-overlay.c
netwatch/vm_flags.h

index 0de5da4aa6ade5e75b1875440944c55044824f30..ba9add0ba7d21ddcb58649e78ffddb3a79d7f191 100644 (file)
@@ -1,68 +1,18 @@
-/*
- * stdarg.h
- * Modified for use in 15-410 at CMU
- * Zachary Anderson(zra)
- */
-
-/*
- * Copyright (c) 1994 The University of Utah and the Flux Group.
- * All rights reserved.
- * 
- * This file is part of the Flux OSKit.  The OSKit is free software, also known
- * as "open source;" you can redistribute it and/or modify it under the terms
- * of the GNU General Public License (GPL), version 2, as published by the Free
- * Software Foundation (FSF).  To explore alternate licensing terms, contact
- * the University of Utah at csl-dist@cs.utah.edu or +1-801-585-3271.
- * 
- * The OSKit is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE.  See the GPL for more details.  You should have
- * received a copy of the GPL along with the OSKit; see the file COPYING.  If
- * not, write to the FSF, 59 Temple Place #330, Boston, MA 02111-1307, USA.
- */
-
-/*
- * Mach Operating System
- * Copyright (c) 1993 Carnegie Mellon University.
- * All Rights Reserved.
- *
- * Permission to use, copy, modify and distribute this software and its
- * documentation is hereby granted, provided that both the copyright
- * notice and this permission notice appear in all copies of the
- * software, derivative works or modified versions, and any portions
- * thereof, and that both notices appear in supporting documentation.
- *
- * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
- * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
- * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
- *
- * Carnegie Mellon requests users of this software to return to
- *
- *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
- *  School of Computer Science
- *  Carnegie Mellon University
- *  Pittsburgh PA 15213-3890
- *
- * any improvements or extensions that they make and grant Carnegie Mellon
- * the rights to redistribute these changes.
- */
-
-
 #ifndef _STDARG_H_
 #define _STDARG_H_
 
-#define __va_size(type) ((sizeof(type)+3) & ~0x3)
+/* This is awful, but really these are compiler intrinsics, so we use the
+ * GNU compiler intrinsics.
+ */
 
-#ifndef _VA_LIST_
-#define _VA_LIST_
-typedef        char * va_list;
+#ifdef __GNUC__
+typedef __builtin_va_list va_list;
+#define va_start(v,l)   __builtin_va_start(v,l)
+#define va_end(v)       __builtin_va_end(v)
+#define va_arg(v,l)     __builtin_va_arg(v,l)
+#define va_copy(d,s)    __builtin_va_copy(d,s)
+#else
+#error "Don't know how to use varargs not on GNUC, sorry."
 #endif
 
-#define        va_start(pvar, lastarg)                 \
-       ((pvar) = (char*)(void*)&(lastarg) + __va_size(lastarg))
-#define        va_end(pvar)
-#define        va_arg(pvar,type)                       \
-       ((pvar) += __va_size(type),             \
-        *((type *)((pvar) - __va_size(type))))
-
-#endif /* _STDARG_H_ */
+#endif
index dbe42227945b6c866ea6275d8578074d5981478f..eada8ab587872d4e451a255654bd619bf6fcf07d 100644 (file)
@@ -1,3 +1,13 @@
+/* stdint.h
+ * Standard integer types
+ * NetWatch system management mode administration console
+ *
+ * Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
+ * This program is free software; you can redistribute and/or modify it under
+ * the terms found in the file LICENSE in the root of this source tree.
+ *
+ */
+
 #ifndef _STDINT_H
 #define _STDINT_H
 
index 4e116c27c917568f20525d32af98da2e69d1e747..3192228003a732e077a1d15d0f0738101795738b 100644 (file)
@@ -1,3 +1,13 @@
+/* reg-82801b.h
+ * Register macros for Intel 82801B
+ * NetWatch system management mode administration console
+ *
+ * Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
+ * This program is free software; you can redistribute and/or modify it under
+ * the terms found in the file LICENSE in the root of this source tree.
+ *
+ */
+
 #ifndef _REG_82801B_H
 #define _REG_82801B_H
 
index 3f792e0331b81c6d2dd50f20fc579542e7b064d2..60138e48c592349950e0ce6d48cc2226a44ded88 100644 (file)
@@ -1,3 +1,13 @@
+/* output.h
+ * Register macros for Intel 82815
+ * NetWatch system management mode administration console
+ *
+ * Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
+ * This program is free software; you can redistribute and/or modify it under
+ * the terms found in the file LICENSE in the root of this source tree.
+ *
+ */
+
 #ifndef _REG_82815_H
 #define _REG_82815_H
 
index dcb5921f84c32978c5697b7c3b48b43d7ec123f6..01934cac0350b826e9e977baca67d5ae9a3f8326 100644 (file)
@@ -1,3 +1,13 @@
+/* serial.h
+ * Prototypes for serial output routines
+ * NetWatch system management mode administration console
+ *
+ * Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
+ * This program is free software; you can redistribute and/or modify it under
+ * the terms found in the file LICENSE in the root of this source tree.
+ *
+ */
+
 #ifndef SERIAL_H
 #define SERIAL_H
 
index 69fd7efdd691fbafa43f2fb4fed0f070776874bd..a5dad922e1ba47a284619641c9e6aa0a21f59e43 100644 (file)
@@ -1,3 +1,13 @@
+/* smi.h
+ * Prototypes for generic SMI handling routines
+ * NetWatch system management mode administration console
+ *
+ * Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
+ * This program is free software; you can redistribute and/or modify it under
+ * the terms found in the file LICENSE in the root of this source tree.
+ *
+ */
+
 #ifndef SMI_H
 #define SMI_H
 
index cbc9fe09bc01cbe058318a6f4f34f4ee4e04f47f..a25ab8f77aad0b860886b321763bcaf222948bbc 100644 (file)
@@ -1 +1,11 @@
+/* string.h
+ * Stub string.h
+ * NetWatch system management mode administration console
+ *
+ * Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
+ * This program is free software; you can redistribute and/or modify it under
+ * the terms found in the file LICENSE in the root of this source tree.
+ *
+ */
+
 #include <minilib.h>
index 474e1235c2bf24caf53944e22257b79d8a343778..7e1ab5c205e783e51102944ec20b9254b72ee306 100644 (file)
@@ -1,3 +1,13 @@
+/* text.h
+ * Prototypes for text rendering routines
+ * NetWatch system management mode administration console
+ *
+ * Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
+ * This program is free software; you can redistribute and/or modify it under
+ * the terms found in the file LICENSE in the root of this source tree.
+ *
+ */
+
 #ifndef _TEXT_H
 
 #include <stdint.h>
index b3b6985fb4a3077041e4ea852d40a15c8a8737bd..c75674caf5b6c29277d60e174ea241638bfc82ed 100644 (file)
@@ -1,3 +1,13 @@
+/* output.h
+ * Prototypes for timer handling routines
+ * NetWatch system management mode administration console
+ *
+ * Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
+ * This program is free software; you can redistribute and/or modify it under
+ * the terms found in the file LICENSE in the root of this source tree.
+ *
+ */
+
 #ifndef TIMER_H
 #define TIMER_H
 
index d493f67752c459bd0a4c7a2468d74b86ce9ee1fa..9ae273fe997a5b8b6234a8d35550e22accc9f011 100644 (file)
@@ -1,3 +1,13 @@
+/* vga-overlay.h
+ * Prototype for VGA text overlay routines
+ * NetWatch system management mode administration console
+ *
+ * Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
+ * This program is free software; you can redistribute and/or modify it under
+ * the terms found in the file LICENSE in the root of this source tree.
+ *
+ */
+
 #ifndef VGA_OVERLAY_H
 #define VGA_OVERLAY_H
 
index 66cfbaffcb47b57f29e09263ba9b34ffce45a2ae..db95d7dcbdc8c12f13b87b7cd57a7143e2f824aa 100644 (file)
@@ -1,8 +1,10 @@
-/** @file console.c 
- *  @brief A console driver.
+/* console.c 
+ * A console driver.
+ *
+ * Copyright (c) 2008 Joshua Wise.  All rights reserved.
+ * This program is free software; you can redistribute and/or modify it under
+ * the terms found in the file LICENSE in the root of this source tree.
  *
- *  @author Joshua Wise (jwise) <joshua@joshuawise.com>
- *  @bug None known
  */
 
 #include <console.h>
index 30412dbf7254c98c6e33277f1397966c0a800884..392eae7abcaf146e8f09ce8a4b4f3cec32457b6e 100644 (file)
@@ -1,7 +1,18 @@
+/* minilib.c
+ * General-purpose C library routines.
+ * NetWatch system management mode administration console
+ *
+ * Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
+ * This program is free software; you can redistribute and/or modify it under
+ * the terms found in the file LICENSE in the root of this source tree.
+ *
+ */
+
 #include "console.h"
 #include <minilib.h>
 #include <output.h>
 
+
 /* We have both _memcpy and memcpy, because gcc might be able to do better in lwip.
  * For small things, gcc inlines its memcpy, but for large things, we call out
  * to this memcpy.
index 6043db247d3db6ad8b8c83be942bd8c415f978f4..95d830062c6aa7d8ccad55aa4ccb53ed43072b34 100644 (file)
@@ -1,3 +1,13 @@
+/* serial.c
+ * Serial output routines.
+ * NetWatch system management mode administration console
+ *
+ * Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
+ * This program is free software; you can redistribute and/or modify it under
+ * the terms found in the file LICENSE in the root of this source tree.
+ *
+ */
+
 #include <minilib.h>
 #include <io.h>
 
index b3ccc514b2d81c30a42cc531199aa552adf23c5d..d56dce5c9ae821b4599f1af873e3e895fcb5f96e 100644 (file)
@@ -1,3 +1,14 @@
+/* etherboot-compat.h
+ * EtherBoot driver compatibility routines
+ * NetWatch system management mode administration console
+ *
+ * Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
+ * This program is free software; you can redistribute and/or modify it under
+ * the terms found in the file LICENSE in the root of this source tree.
+ *
+ */
+
+
 #ifndef _ETHERBOOT_COMPAT_H
 #define _ETHERBOOT_COMPAT_H
 
index 25926af7dac5225d84cac8a765b90ce6c6ee9fbf..1462f09e30ae44c466140949299598820b99e743 100644 (file)
--- a/net/net.c
+++ b/net/net.c
@@ -1,3 +1,13 @@
+/* net.c
+ * Top-level network glue code
+ * NetWatch system management mode administration console
+ *
+ * Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
+ * This program is free software; you can redistribute and/or modify it under
+ * the terms found in the file LICENSE in the root of this source tree.
+ *
+ */
+
 #include <pci.h>
 #include <smram.h>
 #include <pci-bother.h>
index ae82f472dd29fa4193bdc07c878209b706be1aa3..02c544eb4f4135d6879b617ab99d9203715e45d3 100644 (file)
--- a/net/net.h
+++ b/net/net.h
@@ -1,3 +1,13 @@
+/* net.h
+ * Top-level network clue code headers
+ * NetWatch system management mode administration console
+ *
+ * Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
+ * This program is free software; you can redistribute and/or modify it under
+ * the terms found in the file LICENSE in the root of this source tree.
+ *
+ */
+
 #ifndef _NET_H
 #define _NET_H
 
index 8e5ab91b1732ae093e5ca9997944caa39d1b2f76..514dfc71e0837b4061984c2a6a065a873d948531 100644 (file)
--- a/net/rfb.c
+++ b/net/rfb.c
@@ -1,3 +1,13 @@
+/* rfb.c
+ * Remote framebuffer server
+ * NetWatch system management mode administration console
+ *
+ * Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
+ * This program is free software; you can redistribute and/or modify it under
+ * the terms found in the file LICENSE in the root of this source tree.
+ *
+ */
+
 #include <stdint.h>
 #include <minilib.h>
 #include <output.h>
index 601e2f5d1e7c73cd1284815be3c9184a84fd0507..25fa3fbced41a255861e47f4f776598727eb2e38 100644 (file)
--- a/net/rfb.h
+++ b/net/rfb.h
@@ -1,3 +1,13 @@
+/* rfb.h
+ * Remote framebuffer server
+ * NetWatch system management mode administration console
+ *
+ * Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
+ * This program is free software; you can redistribute and/or modify it under
+ * the terms found in the file LICENSE in the root of this source tree.
+ *
+ */
+
 #ifndef _RFB_H
 #define _RFB_H
 
index fca0bfe8694faf788994f3e8388088c36880fabc..9517b1a140c08fd746b38bb82fe084c03a595535 100644 (file)
@@ -1,3 +1,13 @@
+/* drivers.c
+ * PCI driver table
+ * NetWatch system management mode administration console
+ *
+ * Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
+ * This program is free software; you can redistribute and/or modify it under
+ * the terms found in the file LICENSE in the root of this source tree.
+ *
+ */
+
 #include <pci.h>
 
 extern struct pci_driver a3c90x_driver;
index 151382ea81f1b3a783df99562b13c79a225aafed..e5d073b99a996ea766a0f09263ff9659a3ea688b 100644 (file)
@@ -1,3 +1,11 @@
+; entry.asm
+; SMI entry point
+; NetWatch system management mode administration console
+;
+; Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
+; This program is free software; you can redistribute and/or modify it under
+; the terms found in the file LICENSE in the root of this source tree.
+
        org 0xA8000
 [bits 16]
 entry:
index efa060030729d77130f18bf0659f5678c6e97c5e..66b08d41c201aeb10d28290a48dc6d5f84ab8760 100644 (file)
@@ -1,3 +1,13 @@
+/* firstrun.c
+ * First-run handler
+ * NetWatch system management mode administration console
+ *
+ * Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
+ * This program is free software; you can redistribute and/or modify it under
+ * the terms found in the file LICENSE in the root of this source tree.
+ *
+ */
+
 #include <io.h>
 #include <smi.h>
 #include <pci.h>
index a53a6e7b3c6443d3701b1906458c7be4634426ab..64be4452182ff5f7cef723771501dfb0740d1470 100644 (file)
@@ -1,3 +1,13 @@
+/* keyboard.c
+ * Keyboard scan code conversion and injection.
+ * NetWatch system management mode administration console
+ *
+ * Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
+ * This program is free software; you can redistribute and/or modify it under
+ * the terms found in the file LICENSE in the root of this source tree.
+ *
+ */
+
 #include "keyboard.h"
 #include <stdint.h>
 #include <minilib.h>
index db49f602ec99b382ce1cc80ae31ac027095c795b..3bfc59905dc2997f22c51aaa036ee64c56bb64a2 100644 (file)
@@ -1,3 +1,13 @@
+/* main.c
+ * Main post-paging entry point.
+ * NetWatch system management mode administration console
+ *
+ * Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
+ * This program is free software; you can redistribute and/or modify it under
+ * the terms found in the file LICENSE in the root of this source tree.
+ *
+ */
+
 #include <io.h>
 #include <smram.h>
 #include <video_defines.h>
index ff5c41e62b7eeec960e4d0d19a239d5ede2ec3a5..99294f275a2b6b11b634d721c22907f6261516e1 100644 (file)
@@ -1,3 +1,13 @@
+/* packet.c
+ * OS-to-NetWatch communication packet interface
+ * NetWatch system management mode administration console
+ *
+ * Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
+ * This program is free software; you can redistribute and/or modify it under
+ * the terms found in the file LICENSE in the root of this source tree.
+ *
+ */
+
 #include <stdint.h>
 #include "packet.h"
 
index 1544f047ab6bfa2ad13e6b7f188237c4ed641be2..211804f1c97681474f8057fec3d3bc7e5327d640 100644 (file)
@@ -1,3 +1,13 @@
+/* packet.h
+ * OS-to-NetWatch communication packet interface
+ * NetWatch system management mode administration console
+ *
+ * Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
+ * This program is free software; you can redistribute and/or modify it under
+ * the terms found in the file LICENSE in the root of this source tree.
+ *
+ */
+
 #ifndef _PAGETABLE_H
 #define _PAGETABLE_H
 
index 414e463efbbe104bd68f0fa71a25b2c7645dd09a..964d06ed9c2b96b559a9bab0e6314ae38e8401ec 100644 (file)
@@ -1,3 +1,10 @@
+# pagingstub-asm.s
+# Paging-enable helper routines
+# NetWatch system management mode administration console
+#
+# Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
+# This program is free software; you can redistribute and/or modify it under
+# the terms found in the file LICENSE in the root of this source tree.
 
 .globl set_cr0
 
index 941be86ef737baaaab8845cd78b41d82d78ca3e3..5ba1857cf4f73e1b745d2e399162c6211dace9d5 100644 (file)
@@ -1,3 +1,14 @@
+/* pagingstub.c
+ * Paging enable routines
+ * NetWatch system management mode administration console
+ *
+ * Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
+ * This program is free software; you can redistribute and/or modify it under
+ * the terms found in the file LICENSE in the root of this source tree.
+ *
+ */
+
+
 #include <io.h>
 #include <smram.h>
 #include <video_defines.h>
index d519341a9370446fdbe8e1e65e56419271f4abb4..e551ac4ccb8ffa7f0edd92a64518674b0a00ec5b 100644 (file)
@@ -1,3 +1,13 @@
+/* smi.c
+ * First-run SMI C entry point
+ * NetWatch system management mode administration console
+ *
+ * Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
+ * This program is free software; you can redistribute and/or modify it under
+ * the terms found in the file LICENSE in the root of this source tree.
+ *
+ */
+
 #include <io.h>
 #include <smram.h>
 #include <video_defines.h>
index bbf332797622c87010315467c6558dd1b5158656..bf5ca803b221ef2968fb9dee73ee0be0a47345d1 100644 (file)
@@ -1,3 +1,13 @@
+/* traps.c
+ * Trap handling routines
+ * NetWatch system management mode administration console
+ *
+ * Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
+ * This program is free software; you can redistribute and/or modify it under
+ * the terms found in the file LICENSE in the root of this source tree.
+ *
+ */
+
 #include <output.h>
 #include <io.h>
 #include <paging.h>
index f57e036f9ae63a88251ce844c55acf37aab91bb5..430dcd87a72e11514eccfc74cb51df88895105be 100644 (file)
@@ -1,3 +1,13 @@
+/* traps.h
+ * Trap handling macros
+ * NetWatch system management mode administration console
+ *
+ * Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
+ * This program is free software; you can redistribute and/or modify it under
+ * the terms found in the file LICENSE in the root of this source tree.
+ *
+ */
+
 #ifndef TRAPS_H
 #define TRAPS_H
 
index 6c6020c255b47ca6b61086f621f1c267c2c7d6c0..77dc0537db052ddac5152a64708db50abb64b339 100644 (file)
@@ -1,3 +1,13 @@
+/* vga-overlay.c
+ * VGA text overlay code
+ * NetWatch system management mode administration console
+ *
+ * Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
+ * This program is free software; you can redistribute and/or modify it under
+ * the terms found in the file LICENSE in the root of this source tree.
+ *
+ */
+
 #include <io.h>
 #include <smram.h>
 #include <video_defines.h>
index f003516cf267acb6bd85b118edf8f54aa411142a..e8a0f3fa38575a8cee6955497e4a4049f165a3bb 100644 (file)
@@ -1,8 +1,11 @@
-/** Page table and page directory flags.
+/* vm_flags.h
+ * Page table and page directory flags.
+ * NetWatch system management mode administration console
  *
- *  From intel-sys.pdf.
+ * Copyright (c) 2008 Jacob Potter and Joshua Wise.  All rights reserved.
+ * This program is free software; you can redistribute and/or modify it under
+ * the terms found in the file LICENSE in the root of this source tree.
  *
- *  @author Jacob Potter (jdpotter)
  */
 
 #ifndef _VM_FLAGS_H
This page took 0.052202 seconds and 4 git commands to generate.