From owner-freebsd-hardware Wed Jan 3 3:28:21 2001 From owner-freebsd-hardware@FreeBSD.ORG Wed Jan 3 03:28:17 2001 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from osiris.ipform.ru (osiris.ipform.ru [212.158.165.98]) by hub.freebsd.org (Postfix) with ESMTP id 6D25737B402; Wed, 3 Jan 2001 03:28:14 -0800 (PST) Received: from wp2 (wp2 [192.168.0.12]) by osiris.ipform.ru (8.11.1/8.11.1) with SMTP id f03BSCb34365; Wed, 3 Jan 2001 14:28:12 +0300 (MSK) (envelope-from matrix@ipform.ru) Message-ID: <013f01c07578$41e18d40$0c00a8c0@ipform.ru> From: "Artem Koutchine" To: Cc: Subject: Port access is too slow Date: Wed, 3 Jan 2001 14:22:36 +0300 Organization: IP Form MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-freebsd-hardware@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello! I have succesfully accessed io port by opening /dev/io and using some inb, outb from machine/cpufunc.h. I am using to to control an LCD display connected to parallel port using WimAMP schematics. I tested the LCD on windows before and it works fast and reliable. Now, when i ported to source code to freebsd it still work reliably, but it because way too slow. Before that i needed 40 microseconds delays inserted when sending data to the port, but now i can even call 4 nanoseconds (NANO!) nanosleep() and get the proper output, which is very weird. I seems as IO operations a very slow by themselves in FreeBSD. Is it true? Or I am doing something wrong? Artem To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hardware" in the body of the message