search for: outb

Displaying 20 results from an estimated 136 matches for "outb".

Did you mean: out
2012 May 01
8
VGABIOS patches
Couple of patches to fix an overflow, optimize a bit and support bigger resolutions using Windows 8.
2012 Aug 29
0
[PATCH V2] x86/i8259: Handle bogus spurious interrupts more quietly
...s spurious */ + bool_t need_eoi = i8259A_irq_type.ack != disable_8259A_irq; spin_lock_irqsave(&i8259A_lock, flags); /* @@ -270,15 +275,19 @@ static void _mask_and_ack_8259A_irq(unsi if (irq & 8) { inb(0xA1); /* DUMMY - (do we need this?) */ outb(cached_A1,0xA1); - outb(0x60 + (irq & 7), 0xA0);/* ''Specific EOI'' to slave */ - outb(0x62,0x20); /* ''Specific EOI'' to master-IRQ2 */ + if ( need_eoi ) + { + outb(0x60 + (irq & 7), 0xA0);/* ''Specific E...
2013 Jul 12
0
[PATCH 001/001] core/serial: Add support for serial output functions.
...%0 \n" + + : /* we don't need output */ + :"a" (loops) + ); +} + +/* + * Try to initialize serial port. + * Default settings: 9600 baud, 8 data bits, 1 stop bit and parity off. + */ +static int serial_init(uint16_t com_port) +{ + /* Turn off the FIFO */ + outb(0x00, com_port + COM_FIFO_CTRL_REG); + /* Disable all interrupts */ + outb(0x00, com_port + COM_INTR_ENABLE_REG); + + /* Enable DLAB (Divisor Latch Access Bit) */ + outb(COM_DLAB_BIT, com_port + COM_LINE_CTRL_REG); + /* + * When COM_DLAB_BIT is set in COM_LINE_CTRL_REG, offsets 0...
2013 Jul 12
2
[PATCH 001/001] core/serial: Add support for serial output functions.
...dec %0 \n" + + : /* we don't need output */ + :"a" (loops) + ); +} + +/* + * Try to initialize serial port. + * Default settings: 9600 baud, 8 data bits, 1 stop bit and parity off. + */ +static int serial_init(uint16_t com_port) +{ + /* Turn off the FIFO */ + outb(0x00, com_port + COM_FIFO_CTRL_REG); + /* Disable all interrupts */ + outb(0x00, com_port + COM_INTR_ENABLE_REG); + + /* Enable DLAB (Divisor Latch Access Bit) */ + outb(COM_DLAB_BIT, com_port + COM_LINE_CTRL_REG); + /* + * When COM_DLAB_BIT is set in COM_LINE_CTRL_REG, offsets 0...
2010 Jun 19
1
more powerful iconv
...== NA_LOGICAL) @@ -584,7 +585,7 @@ PROTECT(ans = duplicate(x)); R_AllocStringBuffer(0, &cbuff); /* 0 -> default */ for(i = 0; i < LENGTH(x); i++) { - si = STRING_ELT(x, i); + si = isRawx ? x : STRING_ELT(x, i); top_of_loop: inbuf = CHAR(si); inb = LENGTH(si); outbuf = cbuff.data; outb = cbuff.bufsize - 1; @@ -622,7 +623,7 @@ goto next_char; } - if(res != -1 && inb == 0) { + if(res != -1 && inb == 0 && !isRawx) { cetype_t ienc = CE_NATIVE; nout = cbuff.bufsize - 1 - outb; @@ -632,7 +633,12 @@ } SET_STRI...
2003 Nov 25
1
Picking a channel (FXO port or SIP) for outb ound calls
> -----Original Message----- > From: Andrew Kohlsmith [mailto:akohlsmith-asterisk@benshaw.com] > Sent: Tuesday, 25 November, 2003 08:56 > To: asterisk-users@lists.digium.com > Subject: Re: [Asterisk-Users] Picking a channel (FXO port or SIP) for outbound calls > > > > Yep, we use it for international calling. Works great: > > exten => _9011.,1,Dial(Zap/g0/${EXTEN:1},,t) > > How are you achieving that? If I am on a regular FXS connected phone that > line would match 90115, thus preventing me from getting the r...
2020 Jan 22
0
[PATCH] com32/modules: introduce play module
...1 +#define PIT_SPK_DATA 0x02 +#define PIT_SPK_TMR2_LATCH 0x20 +#define PIT_CTRL_SELECT_2 0x80 +#define PIT_CTRL_READLOAD_WORD 0x30 +#define PIT_CTRL_SQUAREWAVE_GEN 0x06 +#define PIT_CTRL_COUNT_BINARY 0x00 + +static void beep_off(void) +{ + unsigned char status; + + status = inb(PIT_SPEAKER_PORT); + outb(status & ~(PIT_SPK_TMR2 | PIT_SPK_DATA), PIT_SPEAKER_PORT); +} + +static void beep_on(uint16_t pitch) +{ + unsigned char status; + unsigned int counter; + + if (pitch < 20) + pitch = 20; + else if (pitch > 20000) + pitch = 20000; + + counter = SPEAKER_PIT_FREQUENCY / pitch; + outb(PIT_C...
2005 Aug 13
0
[Asterisk-Dev] Re: FXO PCI Master abort
...am no nearer finding out why I am getting the erroneous IRQ in the first place! Any help much appreciated... Cheers Mark. --- wcfxo.c 2005-08-13 14:16:44.690969912 +0100 +++ wcfxo.c.old 2005-08-13 08:51:00.000000000 +0100 @@ -726,18 +726,11 @@ /* Reset Master and TDM */ outb(0x01, wc->ioaddr + WC_CNTL); outb(0x01, wc->ioaddr + WC_OPER); - - printk("UnMasking IRQ\n"); - outb(0x3f, wc->ioaddr + WC_MASK0); } static void wcfxo_stop_dma(struct wcfxo *wc) { - /* Enable interrupts (we care about all of them, except the on...
2005 Jan 10
3
FXO PCI Master abort
Recently I started getting weird errors. All of a sudden I see the harddrive of my box glowing steadily and syslog is getting filled (and the cpu hogged) with these errors: It seems to start with this line: Jan 1 03:28:04 kernel: FXO PCI Master abort Jan 1 03:28:04 last message repeated 12 times Jan 1 03:28:06 kernel: CI Master abort Jan 1 03:28:06 kernel: FXO PCI Master abort and seems to
2008 Dec 03
3
canreinvite=yes problem
Hello, I need to test canreinvite=yes with 2softphones and 1 asterisk. I want to have that : http://www.panoramisk.com/wp-content/uploads/2007/05/asterisk-call-flow-outb ridge.png But I have that http://www.zimagez.com/zimage/canreinvite.php Canreinvite=yes work for all phones or just asterisk?... Can you help me? Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/...
2023 Mar 15
0
[PATCH v3 07/38] drm: handle HAS_IOPORT dependencies
On Tue, 14 Mar 2023, Niklas Schnelle <schnelle at linux.ibm.com> wrote: > In a future patch HAS_IOPORT=n will result in inb()/outb() and friends > not being declared. We thus need to add HAS_IOPORT as dependency for > those drivers using them. In the bochs driver there is optional MMIO > support detected at runtime, warn if this isn't taken when > HAS_IOPORT is not defined. Not that I care a whole lot, but the...
2007 Apr 18
1
[RFC, PATCH 16/24] i386 Vmi io header
...ach_io.h> /* * This file contains the definitions for the x86 IO instructions @@ -296,19 +297,11 @@ static inline void flush_write_buffers(v #endif /* __KERNEL__ */ -#ifdef SLOW_IO_BY_JUMPING -#define __SLOW_DOWN_IO "jmp 1f; 1: jmp 1f; 1:" -#else -#define __SLOW_DOWN_IO "outb %%al,$0x80;" -#endif - static inline void slow_down_io(void) { - __asm__ __volatile__( - __SLOW_DOWN_IO + __SLOW_DOWN_IO; #ifdef REALLY_SLOW_IO - __SLOW_DOWN_IO __SLOW_DOWN_IO __SLOW_DOWN_IO + __SLOW_DOWN_IO; __SLOW_DOWN_IO; __SLOW_DOWN_IO; #endif - : : ); } #ifdef CONFIG_X86_NUMAQ @...
2007 Apr 18
1
[RFC, PATCH 16/24] i386 Vmi io header
...ach_io.h> /* * This file contains the definitions for the x86 IO instructions @@ -296,19 +297,11 @@ static inline void flush_write_buffers(v #endif /* __KERNEL__ */ -#ifdef SLOW_IO_BY_JUMPING -#define __SLOW_DOWN_IO "jmp 1f; 1: jmp 1f; 1:" -#else -#define __SLOW_DOWN_IO "outb %%al,$0x80;" -#endif - static inline void slow_down_io(void) { - __asm__ __volatile__( - __SLOW_DOWN_IO + __SLOW_DOWN_IO; #ifdef REALLY_SLOW_IO - __SLOW_DOWN_IO __SLOW_DOWN_IO __SLOW_DOWN_IO + __SLOW_DOWN_IO; __SLOW_DOWN_IO; __SLOW_DOWN_IO; #endif - : : ); } #ifdef CONFIG_X86_NUMAQ @...
2007 May 15
3
[PATCH 1/12] Add suspend/resume to devices owned by Xen
...10:21:23 2007 +0100 +++ b/xen/arch/x86/i8259.c Mon May 14 15:05:28 2007 -0400 @@ -306,6 +306,36 @@ static void mask_and_ack_8259A_vector(un } } +static char irq_trigger[2]; +/** + * ELCR registers (0x4d0, 0x4d1) control edge/level of IRQ + */ +static void restore_ELCR(char *trigger) +{ + outb(trigger[0], 0x4d0); + outb(trigger[1], 0x4d1); +} + +static void save_ELCR(char *trigger) +{ + /* IRQ 0,1,2,8,13 are marked as reserved */ + trigger[0] = inb(0x4d0) & 0xF8; + trigger[1] = inb(0x4d1) & 0xDE; +} + +int i8259A_resume(void) +{ + init_8259A(0); + restore_ELCR(i...
2023 Feb 15
1
[PATCH 17/17] drm/cirrus: Use VGA macro constants to unblank
...2862f 100644 --- a/drivers/gpu/drm/tiny/cirrus.c +++ b/drivers/gpu/drm/tiny/cirrus.c @@ -509,7 +509,7 @@ static void cirrus_crtc_helper_atomic_enable(struct drm_crtc *crtc, cirrus_mode_set(cirrus, &crtc_state->mode); /* Unblank (needed on S3 resume, vgabios doesn't do it then) */ - outb(0x20, 0x3c0); + outb(VGA_AR_ENABLE_DISPLAY, VGA_ATT_W); drm_dev_exit(idx); } -- 2.39.1
2006 Aug 14
0
[PATCH] HVM SMBIOS v3 [1/5]
..._t v) { __asm__ __volatile__( diff -r f328519053f5 -r 4cc861f6b425 tools/firmware/hvmloader/util.c --- a/tools/firmware/hvmloader/util.c Mon Aug 14 10:58:02 2006 +0100 +++ b/tools/firmware/hvmloader/util.c Mon Aug 14 11:16:09 2006 -0400 @@ -94,3 +94,12 @@ void puts(const char *s) while (*s) outb(0xE9, *s++); } + +void +cpuid(uint32_t idx, uint32_t *eax, uint32_t *ebx, uint32_t *ecx, uint32_t *edx) +{ + __asm__ __volatile__( + "cpuid" + : "=a" (*eax), "=b" (*ebx), "=c" (*ecx), "=d" (*edx) +...
2004 Jan 24
1
Supporting multiple video cards under Linux
...6 mode, or on non-86 architectures run a x86 emulator if need be. You can't call the VBIOS from a device driver becuase it has been written assuming that it will be run in real mode, not protected mode. I tried linking to klibc but I'm missing some key pieces. I need things like inb/w/l(), outb/w/l(), iopl(), and vm86 support. Is it possible to get these added to klibc? These are probably all macros simply generating ASM instructions or calling the kernel VM86 entry point. ===== Jon Smirl jonsmirl@yahoo.com __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web...
2011 May 25
1
[GIT PULL] elflink ldlinux
Hi, These patches contain support for some features that are already in Syslinux 4 but weren't working properly on the elflink branch. It's another step closer to feature parity with Syslinux 4. Having to jump through the comboot API for localboot support is less than ideal and I'll eventually fix that, probably when we move a big chunk of code from asm to C. Also, there's a
2012 May 04
9
[hybrid]: unable to boot hvm due to eflags.ID
Hi guys, At a loss trying to figure why if (has_eflag(X86_EFLAGS_ID)) returns false in my HVM domU. Standard function has_eflag() in cpucheck.c running in real mode. Works fine on PV dom0, but fails when guest is booting on my hybrid dom0. LMK if any ideas. I''ll keep digging in the manuals, but nothing so far. thanks, Mukesh
2014 Jan 31
3
Help needed for bug 58556
----- Mail original ----- > De: "Ilia Mirkin" <imirkin at alum.mit.edu> > ?: "pierre morrow" <pierre.morrow at free.fr> > Cc: nouveau at lists.freedesktop.org > Envoy?: Vendredi 31 Janvier 2014 21:16:40 > Objet: Re: [Nouveau] Help needed for bug 58556 > Unfortunately this is a *massive* bug... and confused by the "other" > very