From: Joshua Wise Date: Tue, 16 Dec 2008 19:01:41 +0000 (-0500) Subject: Add some headers. X-Git-Url: http://git.joshuawise.com/netwatch.git/commitdiff_plain/f1584bb056629473dd1208034fed761cbaea8e29 Add some headers. --- diff --git a/grubload/loader.c b/grubload/loader.c index a754a49..2b86a75 100644 --- a/grubload/loader.c +++ b/grubload/loader.c @@ -1,3 +1,13 @@ +/* loader.c + * ELF loading subroutines + * NetWatch multiboot loader + * + * 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 #include #include diff --git a/grubload/multiboot_asm.S b/grubload/multiboot_asm.S index 1ee6ba2..c7fd794 100644 --- a/grubload/multiboot_asm.S +++ b/grubload/multiboot_asm.S @@ -1,3 +1,13 @@ +/* multiboot_asm.S + * Multiboot header + * NetWatch multiboot loader + * + * 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 _start _start: diff --git a/grubload/multiboot_c.c b/grubload/multiboot_c.c index 5e30dde..9806ca4 100644 --- a/grubload/multiboot_c.c +++ b/grubload/multiboot_c.c @@ -1,3 +1,13 @@ +/* multiboot_c.c + * Main program for starting SMM code + * NetWatch multiboot loader + * + * 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 "loader.h" #include diff --git a/grubload/output.c b/grubload/output.c index 6abc72a..5f0365d 100644 --- a/grubload/output.c +++ b/grubload/output.c @@ -1,3 +1,14 @@ +/* output.c + * Console output routines + * NetWatch multiboot loader + * + * 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 #include #include diff --git a/grubload/realmode.asm b/grubload/realmode.asm index b504b00..f91352c 100644 --- a/grubload/realmode.asm +++ b/grubload/realmode.asm @@ -1,3 +1,11 @@ +; realmode.asm +; Routines to return the system to real mode +; NetWatch multiboot loader +; +; 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. + [bits 32] ; Starts in 32 bit mode, then will drop back later. org 0x4000 entry: diff --git a/ich2/ich2-timer.c b/ich2/ich2-timer.c index 9934589..b8f7e1c 100644 --- a/ich2/ich2-timer.c +++ b/ich2/ich2-timer.c @@ -1,3 +1,13 @@ +/* ich2-timer.c + * High precision timer routines for ICH2 southbridge + * 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 #include #include diff --git a/ich2/smi.c b/ich2/smi.c index 7f96421..c9a1f0e 100644 --- a/ich2/smi.c +++ b/ich2/smi.c @@ -1,3 +1,14 @@ +/* smi.c + * System management interrupt dispatch routines for ICH2 southbridge + * 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 #include #include diff --git a/ich2/smm-open-ich2.c b/ich2/smm-open-ich2.c index 120ac74..8131961 100644 --- a/ich2/smm-open-ich2.c +++ b/ich2/smm-open-ich2.c @@ -1,3 +1,14 @@ +/* smm-open-ich2.c + * SMRAM control utility for ICH2 southbridge + * 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 "reg-82815.h" #include #include diff --git a/ich2/smram-ich2.c b/ich2/smram-ich2.c index efc79e6..36e750f 100644 --- a/ich2/smram-ich2.c +++ b/ich2/smram-ich2.c @@ -1,3 +1,14 @@ +/* ich2-timer.c + * SMRAM access utility for ICH2 chipset + * 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 "reg-82815.h" #include #include diff --git a/ich2/smram-ich2.h b/ich2/smram-ich2.h index cd645c9..b08262b 100644 --- a/ich2/smram-ich2.h +++ b/ich2/smram-ich2.h @@ -1,3 +1,14 @@ +/* smram-ich2.h + * Definitions for SMRAM access for ICH2 southbridge + * 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 __SMRAM_ICH2_H #define __SMRAM_ICH2_H diff --git a/ich7/reg-82865.h b/ich7/reg-82865.h index 9c3d3df..33b29ea 100644 --- a/ich7/reg-82865.h +++ b/ich7/reg-82865.h @@ -1,3 +1,13 @@ +/* reg-82865.h + * SMRAM register definitions for Intel 82865 northbridge + * 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_82865_H #define _REG_82865_H diff --git a/ich7/smm-open-ich7.c b/ich7/smm-open-ich7.c index d53a6bd..2d69e3f 100644 --- a/ich7/smm-open-ich7.c +++ b/ich7/smm-open-ich7.c @@ -1,3 +1,13 @@ +/* smm-open-ich7.c + * SMRAM open utility for Intel 82865 northbridge + * 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 "reg-82865.h" void main() @@ -18,4 +28,4 @@ void main() printf("SMRAM is locked, cannot load anything :-(\n"); return; } -} \ No newline at end of file +} diff --git a/include/console-ext.h b/include/console-ext.h index 849fd16..588b0ae 100644 --- a/include/console-ext.h +++ b/include/console-ext.h @@ -1,9 +1,11 @@ -/** @file console-ext.h +/* console-ext.h + * Console definitions + * NetWatch system management mode administration console * - * @brief Forward declarations for extended console functions + * 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 Joshua Wise (jwise) - * @buf None known */ #ifndef __CONSOLE_EXT_H diff --git a/include/crc32.h b/include/crc32.h index a384bcc..fbac9ce 100644 --- a/include/crc32.h +++ b/include/crc32.h @@ -1,3 +1,13 @@ +/* crc32.h + * CRC32 routine declarations + * 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 _CRC32_H #define _CRC32_H diff --git a/include/fb.h b/include/fb.h index 79f05b5..62524d1 100644 --- a/include/fb.h +++ b/include/fb.h @@ -1,3 +1,13 @@ +/* fb.h + * Framebuffer definitions + * 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 __FB_H #define __FB_H diff --git a/include/keyboard.h b/include/keyboard.h index 28f41b2..ee40dea 100644 --- a/include/keyboard.h +++ b/include/keyboard.h @@ -1,3 +1,13 @@ +/* keyboard.h + * Keyboard injection definitions + * 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 KEYBOARD_H #define KEYBOARD_H diff --git a/include/minilib.h b/include/minilib.h index d743d5b..2e7eca6 100644 --- a/include/minilib.h +++ b/include/minilib.h @@ -1,3 +1,13 @@ +/* minilib.h + * Definitions for a very small libc + * 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 MINILIB_H #define MINILIB_H diff --git a/include/msr.h b/include/msr.h index 0bed091..0da0284 100644 --- a/include/msr.h +++ b/include/msr.h @@ -1,3 +1,13 @@ +/* msr.h + * Macros to read and write model specific registers + * 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 _MSR_H #define _MSR_H diff --git a/include/multiboot.h b/include/multiboot.h index 96f8819..1168fc7 100644 --- a/include/multiboot.h +++ b/include/multiboot.h @@ -1,3 +1,13 @@ +/* minilib.h + * Definitions needed for a multiboot kernel + * 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 __MULTIBOOT_H #define __MULTIBOOT_H diff --git a/include/output.h b/include/output.h index f49ef59..5c1101a 100644 --- a/include/output.h +++ b/include/output.h @@ -1,3 +1,13 @@ +/* output.h + * Definitions for needed 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 __OUTPUT_H #define __OUTPUT_H diff --git a/include/paging.h b/include/paging.h index 0f864d8..4a27bb9 100644 --- a/include/paging.h +++ b/include/paging.h @@ -1,3 +1,13 @@ +/* minilib.h + * Definitions for page-table mapping and demapping + * 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 __PAGING_H #define __PAGING_H diff --git a/include/pci-bother.h b/include/pci-bother.h index ff71755..4a59893 100644 --- a/include/pci-bother.h +++ b/include/pci-bother.h @@ -1,3 +1,13 @@ +/* pci-bother.h + * Definitions for Bothering a PCI device + * 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 _PCI_BOTHER_H #define _PCI_BOTHER_H diff --git a/include/pci.h b/include/pci.h index 9e964ca..5243bfc 100644 --- a/include/pci.h +++ b/include/pci.h @@ -1,3 +1,14 @@ +/* pci.h + * Definitions for PCI access + * 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 PCI_H #define PCI_H diff --git a/include/raw/io.h b/include/raw/io.h index f04f44c..429a706 100644 --- a/include/raw/io.h +++ b/include/raw/io.h @@ -1,3 +1,14 @@ +/* io.h + * I/O port access 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 __IO_H #define __IO_H