diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2006-11-13 21:30:37 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2009-06-18 00:26:55 +0200 |
commit | a42c7a969bfbc6d556179bd19d1fda7cf80f25a8 (patch) | |
tree | e8561178fd94a081f07992f69c290971e945cbb4 /i386/i386at/lpr.c | |
parent | f387d24c7d59cfd219c3b795a512981347240380 (diff) |
2006-11-14 Barry deFreese <bddebian@comcast.net>
* device/chario.c (tty_cts): Add `void' return type.
* device/cons.c (cninit, cnputc): Add `void' return type.
(cngetc, cnmaygetc): Add `int' return type.
* device/net_io.c (net_del_q_info, net_free_dead_infp)
(net_free_dead_entp): Add `void' return type.
* i386/i386/fpu.c (fpnoextflt, fpextovrflt, fpexterrflt, fp_save)
(fp_load, fpintr): Add `void' return type.
* i386/i386/ktss.c (ktss_init): Add `int' type to `exception_stack'.
* i386/i386/loose_ends.c (delay): Add `void' return type.
* i386/i386/phys.c (pmap_zero_page, pmap_copy_page, copy_to_phys)
(copy_from_phys): Add `void' return type.
* i386/i386/pic.c (picinit, form_pic_mask, intnull, prtnull): Add
`void' return type.
* i386/i386/pit.c (clkstart): Add `void' return type.
* i386/i386at/com.c (comparm, comtimer, fix_modem_state)
(commodem_intr): Add `void' return type.
(comintr, commctl, comstop): Add `int' return type.
* i386/i386at/iopl.c (ioplclose): Add `int' return type.
* i386/i386at/kd.c (kd_io_map_openn, kd_io_map_close, feep, pause)
(kd_debug_put, cnpollc, kdclose, kd_handle_ack, kd_resend, kdinit)
(kd_belloff, kd_bellon, kd_putc, kd_setpos, kd_scrollup, kd_scrolldn)
(kd_parseesc, kd_parserest, kd_tab, kd_cls, kd_home, kd_up, kd_down)
(kd_right, kd_left, kd_cr, kd_cltobcur, kd_cltopcurn, kd_cltoecur)
(kd_clfrbcur, kd_delln, kd_insln, kd_delch, kd_erase, kd_eraseln)
(kd_insch, kd_senddata, kd_sendcmd, kd_cmdreg_write, kd_mouse_drain)
(set_kd_state, kd_setleds1, kd_setleds2, cnsetleds, kdreboot): Add
`void' return type.
(kdopen, kdread, kdwrite, kdportdeath, kdsetbell, kdgetkbent, kdintr)
(do_modifier, kdstate2idx, kdstart, kdstop, kd_kbd_magic): Add `int'
return type.
(kd_isupper, kd_islower): Add `boolean_t' return type.
(kd_cmdreg_read): Add `unsigned char' return type.
* i386/i386at/kd_event.c (kbdinit, kbdclose, kdb_in_out, X_kdb_enter)
(X_kdb_exit, X_kdb_enter_init, X_kdb_exit_init): Add `void' return
type.
(kbdopen, kbdioctl, kbdselect, kbdread): Add `int' return type.
* i386/i386at/kd_mouse.c (init_mouse_hw, serial_mouse_open)
(kd_mouse_open, mouseclose, serial_mouse_close, kd_mouse_close)
(mouse_handle_byte, mouse_packet_mouse_system_mouse)
(mouse_packet_microsoft_mouse, ibm_ps2_mouse_open)
(ibm_ps2_mouse_close, mouse_packet_ibm_ps2_mouse, mouse_moved)
(mouse_button): Add `void' return type.
(mouseopen, mouseioctl, mouseselect, mouseread, mouseintr): Add `int'
return type.
* i386/i386at/lpr.c (lprclose, lprpr_addr): Add `void' return type.
(lprprobe, lpropen, lprread, lprwrite, lprportdeath, lprstop, lprpr):
Add `int' return type.
* i386/i386at/model_dep.c (i386at_init, startrtclock): Add `void'
return type.
(timemmap): Add `int' return type.
* i386/i386at/rtc.c (rtcinit, rtcput): Add `void' return type.
(yeartoday, hexdectodec, readtodc, writetodc): Add `int' return type.
* i386/intel/pmap.c (pmap_pageable): Add `void' return type.
* kern/eventcount.c (simpler_thread_setrun): Add `int' type to
`whichrq' variable.
Diffstat (limited to 'i386/i386at/lpr.c')
-rw-r--r-- | i386/i386at/lpr.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/i386/i386at/lpr.c b/i386/i386at/lpr.c index f2fa032..348159e 100644 --- a/i386/i386at/lpr.c +++ b/i386/i386at/lpr.c @@ -81,6 +81,7 @@ struct tty lpr_tty[NLPR]; int lpr_alive[NLPR]; +int lprprobe(port, dev) struct bus_device *dev; { @@ -122,6 +123,7 @@ void lprattach(struct bus_device *dev) return; } +int lpropen(dev, flag, ior) int dev; int flag; @@ -158,6 +160,7 @@ u_short addr; return (char_open(dev, tp, flag, ior)); } +void lprclose(dev, flag) int dev; int flag; @@ -177,6 +180,7 @@ u_short addr = (u_short) lprinfo[unit]->address; } #ifdef MACH_KERNEL +int lprread(dev, ior) int dev; io_req_t ior; @@ -184,6 +188,7 @@ io_req_t ior; return char_read(&lpr_tty[minor(dev)], ior); } +int lprwrite(dev, ior) int dev; io_req_t ior; @@ -191,6 +196,7 @@ io_req_t ior; return char_write(&lpr_tty[minor(dev)], ior); } +int lprportdeath(dev, port) dev_t dev; mach_port_t port; @@ -363,6 +369,7 @@ struct tty *tp; } #ifdef MACH_KERNEL +int lprstop(tp, flags) register struct tty *tp; int flags; @@ -381,12 +388,14 @@ struct tty *tp; splx(s); } #endif /* MACH_KERNEL */ +int lprpr(unit) { lprpr_addr(lprinfo[unit]->address); return 0; } +void lprpr_addr(addr) { printf("DATA(%x) %x, STATUS(%x) %x, INTR_ENAB(%x) %x\n", |