consport.c (222105) | consport.c (242192) |
---|---|
1/*- 2 * Copyright (c) 2011 NetApp, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 110 unchanged lines hidden (view full) --- 119 120 if (in) 121 *eax = ttyread(); 122 else 123 ttywrite(*eax); 124 125 return (0); 126} | 1/*- 2 * Copyright (c) 2011 NetApp, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 110 unchanged lines hidden (view full) --- 119 120 if (in) 121 *eax = ttyread(); 122 else 123 ttywrite(*eax); 124 125 return (0); 126} |
127INOUT_PORT(console, BVM_CONSOLE_PORT, IOPORT_F_INOUT, console_handler); | 127 128static struct inout_port consport = { 129 "bvmcons", 130 BVM_CONSOLE_PORT, 131 IOPORT_F_INOUT, 132 console_handler 133}; 134 135void 136init_bvmcons(void) 137{ 138 139 register_inout(&consport); 140} |