Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 01 Oct 2014 07:54:37 GMT
From:      "Johan Watson" <sales@furnways.co.za>
To:        emulation@freebsd.org
Subject:   October Specials from Furnways
Message-ID:  <8af2d27620970b5472470711c34105@app-1>

next in thread | raw e-mail | index | archive | help
Hospitality Furniture

[Web version](http://furnways-uoonf0.soundestdirect.=
com/view/542ba73858026ef77f21399c/54263dc2fe7da963021c36cb)

[   ](http://furnways-uoonf0.soundestdirect.com/link/542ba6f558026ef77f2139=
95/542ba73858026ef77f21399c/54263dc2fe7da963021c36cb)

[   ](http://furnways-uoonf0.soundestdirect.com/link/542ba6f558026ef77f2139=
94/542ba73858026ef77f21399c/54263dc2fe7da963021c36cb)

Furnways - Corporate Turnkey Solutions

[**Furnways is a leading office furniture supplier**](http://furnways-uoonf=
0.soundestdirect.com/link/542ba6f558026ef77f213993/542ba73858026ef77f21399c=
/54263dc2fe7da963021c36cb) in South Africa. WE offer the widest range of =
products, from executive desks [to school furniture](http://furnways-uoonf0=
.soundestdirect.com/link/542ba6f558026ef77f213992/542ba73858026ef77f21399c/=
54263dc2fe7da963021c36cb). We are the biggest online furniture store in =
Africa, delivering high quality products at affordable prices, =
understanding our customers' need to acquire top of the line furniture for =
their business with reasonable investments. If you are looking for stylish =
furniture for your office, hotel or restaurant, then this is the perfect =
place for you, as we specialize in creating innovative and chic designs for=
 your furniture.

[ ](http://furnways-uoonf0.soundestdirect.com/link/542ba6f558026ef77f213991=
/542ba73858026ef77f21399c/54263dc2fe7da963021c36cb)

[ Wimpey Side Chair ](http://furnways-uoonf0.soundestdirect.=
com/link/542ba6f558026ef77f213991/542ba73858026ef77f21399c/54263dc2fe7da963=
021c36cb)

Available in over 20 Colours

5 Year Warranty.

R240.00 =C2=A0=C2=A0=C2=A0

[ Buy now ](http://furnways-uoonf0.soundestdirect.com/link/542ba6f558026ef7=
7f213991/542ba73858026ef77f21399c/54263dc2fe7da963021c36cb)

[ ](http://furnways-uoonf0.soundestdirect.com/link/542ba6f558026ef77f213990=
/542ba73858026ef77f21399c/54263dc2fe7da963021c36cb)

[ Wimpey Arm Chair ](http://furnways-uoonf0.soundestdirect.=
com/link/542ba6f558026ef77f213990/542ba73858026ef77f21399c/54263dc2fe7da963=
021c36cb)

Available in over 20 Colours

5 Year Warranty.

R260.00 =C2=A0=C2=A0=C2=A0

[ Buy now ](http://furnways-uoonf0.soundestdirect.com/link/542ba6f558026ef7=
7f213990/542ba73858026ef77f21399c/54263dc2fe7da963021c36cb)

[ ](http://furnways-uoonf0.soundestdirect.com/link/542ba6f558026ef77f21398f=
/542ba73858026ef77f21399c/54263dc2fe7da963021c36cb)

[ Wimpey Ultra Chair ](http://furnways-uoonf0.soundestdirect.=
com/link/542ba6f558026ef77f21398f/542ba73858026ef77f21399c/54263dc2fe7da963=
021c36cb)

Available in over 20 Colours

5 Year Warranty.

R280.00 =C2=A0=C2=A0=C2=A0

[ Buy now ](http://furnways-uoonf0.soundestdirect.com/link/542ba6f558026ef7=
7f21398f/542ba73858026ef77f21399c/54263dc2fe7da963021c36cb)

[ ](http://furnways-uoonf0.soundestdirect.com/link/542ba6f558026ef77f21398e=
/542ba73858026ef77f21399c/54263dc2fe7da963021c36cb)

[ Chloe Chair ](http://furnways-uoonf0.soundestdirect.=
com/link/542ba6f558026ef77f21398e/542ba73858026ef77f21399c/54263dc2fe7da963=
021c36cb)

Available in over 20 Colours

5 Year Warranty.

R480.00 =C2=A0=C2=A0=C2=A0

[ Buy now ](http://furnways-uoonf0.soundestdirect.com/link/542ba6f558026ef7=
7f21398e/542ba73858026ef77f21399c/54263dc2fe7da963021c36cb)

[ ](http://furnways-uoonf0.soundestdirect.com/link/542ba6f558026ef77f21398d=
/542ba73858026ef77f21399c/54263dc2fe7da963021c36cb)

[ Alpine Chairs ](http://furnways-uoonf0.soundestdirect.=
com/link/542ba6f558026ef77f21398d/542ba73858026ef77f21399c/54263dc2fe7da963=
021c36cb)

Available in over 20 Colours

5 Year Warranty.

R132.00 =C2=A0=C2=A0=C2=A0

[ Buy now ](http://furnways-uoonf0.soundestdirect.com/link/542ba6f558026ef7=
7f21398d/542ba73858026ef77f21399c/54263dc2fe7da963021c36cb)

[ ](http://furnways-uoonf0.soundestdirect.com/link/542ba6f558026ef77f21398c=
/542ba73858026ef77f21399c/54263dc2fe7da963021c36cb)

[ Avatar Caf=C3=A9 Chair ](http://furnways-uoonf0.soundestdirect.=
com/link/542ba6f558026ef77f21398c/542ba73858026ef77f21399c/54263dc2fe7da963=
021c36cb)

Available in over 20 Colours

5 Year Warranty.

R260.00 =C2=A0=C2=A0=C2=A0

[ Buy now ](http://furnways-uoonf0.soundestdirect.com/link/542ba6f558026ef7=
7f21398c/542ba73858026ef77f21399c/54263dc2fe7da963021c36cb)

[ ](http://furnways-uoonf0.soundestdirect.com/link/542ba6f558026ef77f21398b=
/542ba73858026ef77f21399c/54263dc2fe7da963021c36cb)

[ Double Pedestal Desk ](http://furnways-uoonf0.soundestdirect.=
com/link/542ba6f558026ef77f21398b/542ba73858026ef77f21399c/54263dc2fe7da963=
021c36cb)

32mm Melamine Top

1800mm*900mm

Single Pedestal: R2865

Available in a variety of colours

5 Year Warranty

R3540.00 =C2=A0=C2=A0=C2=A0

[ Buy now ](http://furnways-uoonf0.soundestdirect.com/link/542ba6f558026ef7=
7f21398b/542ba73858026ef77f21399c/54263dc2fe7da963021c36cb)

[ ](http://furnways-uoonf0.soundestdirect.com/link/542ba6f558026ef77f21398a=
/542ba73858026ef77f21399c/54263dc2fe7da963021c36cb)

[ Rectangular Tables ](http://furnways-uoonf0.soundestdirect.=
com/link/542ba6f558026ef77f21398a/542ba73858026ef77f21399c/54263dc2fe7da963=
021c36cb)

16mm Melamine Tops

Available in Oak, Mahogany or Supawood

1800 * 900 From R1093

1400 * 700 From R663

1200 * 600 From R504=C2=A0

5 Year Warranty

R504.00 =C2=A0=C2=A0=C2=A0

[ Buy now ](http://furnways-uoonf0.soundestdirect.com/link/542ba6f558026ef7=
7f21398a/542ba73858026ef77f21399c/54263dc2fe7da963021c36cb)

[ ](http://furnways-uoonf0.soundestdirect.com/link/542ba6f558026ef77f213989=
/542ba73858026ef77f21399c/54263dc2fe7da963021c36cb)

[ Perforated Metal Set ](http://furnways-uoonf0.soundestdirect.=
com/link/542ba6f558026ef77f213989/542ba73858026ef77f21399c/54263dc2fe7da963=
021c36cb)

Contains:

2 tier letter tray

Paper bin

Pencil cup

Paper cube

5 Year Warranty

**Available in Siver for R1428**

Black/White: R1165.00 =C2=A0=C2=A0=C2=A0

[ Buy now ](http://furnways-uoonf0.soundestdirect.com/link/542ba6f558026ef7=
7f213989/542ba73858026ef77f21399c/54263dc2fe7da963021c36cb)

[ ](http://furnways-uoonf0.soundestdirect.com/link/542ba6f558026ef77f213988=
/542ba73858026ef77f21399c/54263dc2fe7da963021c36cb)

[ Big & Tall Heavy Duty Chair ](http://furnways-uoonf0.soundestdirect.=
com/link/542ba6f558026ef77f213988/542ba73858026ef77f21399c/54263dc2fe7da963=
021c36cb)

Supports Up to 150kg

Leather Seat

Chrome base

Chrome arms with polyurethane pads

5 Year Warranty

R3496.00 =C2=A0=C2=A0=C2=A0

[ Buy now ](http://furnways-uoonf0.soundestdirect.com/link/542ba6f558026ef7=
7f213988/542ba73858026ef77f21399c/54263dc2fe7da963021c36cb)

[ ](http://furnways-uoonf0.soundestdirect.com/link/542ba6f558026ef77f213987=
/542ba73858026ef77f21399c/54263dc2fe7da963021c36cb)

[ Spine Ergonomic High Back Chair ](http://furnways-uoonf0.soundestdirect.=
com/link/542ba6f558026ef77f213987/542ba73858026ef77f21399c/54263dc2fe7da963=
021c36cb)

2 Part shell

Permanent contact mechanism

Adjustable arms

Available in leather

Loads of extras and materials available

5 Year Warranty

R1750.00 =C2=A0=C2=A0=C2=A0

[ Buy now ](http://furnways-uoonf0.soundestdirect.com/link/542ba6f558026ef7=
7f213987/542ba73858026ef77f21399c/54263dc2fe7da963021c36cb)

[ ](http://furnways-uoonf0.soundestdirect.com/link/542ba6f558026ef77f213986=
/542ba73858026ef77f21399c/54263dc2fe7da963021c36cb)

[ Lucea 1500 Ergonomic Typist Chair ](http://furnways-uoonf0.soundestdirect=
.com/link/542ba6f558026ef77f213986/542ba73858026ef77f21399c/54263dc2fe7da96=
3021c36cb)

Ergonomic shaped back with rake and height adjustment

Standard with black nylon base

Available in leather

Loads of extras and materials available

5 Year Warranty

R811.00 =C2=A0=C2=A0=C2=A0

[ Buy now ](http://furnways-uoonf0.soundestdirect.com/link/542ba6f558026ef7=
7f213986/542ba73858026ef77f21399c/54263dc2fe7da963021c36cb)

[   ](http://furnways-uoonf0.soundestdirect.com/link/542ba6f558026ef77f2139=
85/542ba73858026ef77f21399c/54263dc2fe7da963021c36cb)

=C2=A0[ ](http://furnways-uoonf0.soundestdirect.com/link/542ba6f558026ef77f=
213984/542ba73858026ef77f21399c/54263dc2fe7da963021c36cb)=C2=A0 =C2=A0[ =
](http://furnways-uoonf0.soundestdirect.com/link/542ba6f558026ef77f213983/5=
42ba73858026ef77f21399c/54263dc2fe7da963021c36cb)=C2=A0 =C2=A0[ =
](http://furnways-uoonf0.soundestdirect.com/link/542ba6f558026ef77f213982/5=
42ba73858026ef77f21399c/54263dc2fe7da963021c36cb)=C2=A0

[sales@furnways.co.za](mailto:sales@furnways.co.za)

Furnways

Lonehill Boulevard , 22 , Sandton , 2062 , South Africa

All prices are in ZAR and excludes VAT and delivery

=C2=A9 2014 Furnways

[Unsubscribe](http://furnways-uoonf0.soundestdirect.=
com/unsubscribe/542ba73858026ef77f21399c/54263dc2fe7da963021c36cb)

Proudly delivered by

[ ](http://furnways-uoonf0.soundestdirect.com/link/542ba6f558026ef77f213981=
/542ba73858026ef77f21399c/54263dc2fe7da963021c36cb)
From owner-freebsd-emulation@FreeBSD.ORG  Wed Oct  1 09:12:59 2014
Return-Path: <owner-freebsd-emulation@FreeBSD.ORG>
Delivered-To: freebsd-emulation@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
 (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTPS id 22251DF0;
 Wed,  1 Oct 2014 09:12:59 +0000 (UTC)
Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1])
 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id A431D300;
 Wed,  1 Oct 2014 09:12:58 +0000 (UTC)
Received: from tom.home (kostik@localhost [127.0.0.1])
 by kib.kiev.ua (8.14.9/8.14.9) with ESMTP id s919CqT7008194
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
 Wed, 1 Oct 2014 12:12:52 +0300 (EEST)
 (envelope-from kostikbel@gmail.com)
DKIM-Filter: OpenDKIM Filter v2.9.2 kib.kiev.ua s919CqT7008194
Received: (from kostik@localhost)
 by tom.home (8.14.9/8.14.9/Submit) id s919Cqtl008193;
 Wed, 1 Oct 2014 12:12:52 +0300 (EEST)
 (envelope-from kostikbel@gmail.com)
X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com
 using -f
Date: Wed, 1 Oct 2014 12:12:52 +0300
From: Konstantin Belousov <kostikbel@gmail.com>
To: leon zadorin <leonleon77@gmail.com>
Subject: Re: does linsysfs support mmap on pci resources (e.g. pci device's
 registers etc.)
Message-ID: <20141001091252.GP26076@kib.kiev.ua>
References: <CAPpySAaJ2CbsOMrvsrrstD_EQxt3d015T6HgF-Y9zPC7WAh4vA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAPpySAaJ2CbsOMrvsrrstD_EQxt3d015T6HgF-Y9zPC7WAh4vA@mail.gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00,
 DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no
 autolearn_force=no version=3.4.0
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on tom.home
Cc: freebsd-emulation@freebsd.org, hackers@freebsd.org
X-BeenThere: freebsd-emulation@freebsd.org
X-Mailman-Version: 2.1.18-1
Precedence: list
List-Id: Development of Emulators of other operating systems
 <freebsd-emulation.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-emulation>, 
 <mailto:freebsd-emulation-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-emulation/>;
List-Post: <mailto:freebsd-emulation@freebsd.org>
List-Help: <mailto:freebsd-emulation-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-emulation>, 
 <mailto:freebsd-emulation-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 01 Oct 2014 09:12:59 -0000

You choice of the list to ask the question is weird.  I added hackers@
as more suitable ML.

On Wed, Oct 01, 2014 at 03:44:48PM +1000, leon zadorin wrote:
> Hello everyone,
> Sorry if this is a bit of a noob question -- I'm just starting on this
> topic... does FreeBSD's emulation of sysfs (from linux world) support
> "mmap" on pci resources?
> 
> Something similar to the following in the linux environment:
> 
> fd = open("/sys/devices/pci0001\:00/0001\:00\:07.0/resource0", O_RDWR | O_SYNC);
> ptr = mmap(0, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
> printf("PCI BAR0 0x0000 = 0x%4x\n",  *((unsigned short *) ptr);
> 
> (above taken from
> http://billfarrow.blogspot.com.au/2010/09/userspace-access-to-pci-memory.html)
> 
> The reason I am asking is because I would like to map pci device
> registers/memory in user space (and read/write some of the device's
> registers from userspace). The reasons are auxiliary to this post
> (e.g. kernel-bypass, system call bypass, etc.) At this stage it would
> suffice to simply accept that user space pci-register access is needed
> without paying the price of any system/ioctl/etc. call on every
> access-instance to device's config/control register(s).
> 
> I would prefer to avoid writing additional explicit (albeit generic)
> pci related kernel module in order to provide "mmapping" of the given
> pci resources to userspace  if there is already such a generic way to
> do it via sysfs "syntax" (I would like to reduce any of the
> specific/additional code re-writing at the kernel level as much as
> possible).

AFAIK, there is no facilities in FreeBSD kernel which allow you to get
the configuration registers or memory BARs mmapped into the userspace.
The linsysfs is out of question for this sort of hacks. The native
FreeBSD' /dev/pci does not support mmaping either.

It should be not too hard to extend the /dev/pci to do what you described.
Start looking at the sys/dev/pci/pci_user.c

PCIe configuration window is active, so you could access it by hand by
mmapping /dev/mem. Also, the window is mapped into KVA, so you could
access it by /dev/kmem as well. /dev/mem would be easier, I think,
because it needs the physical address, which can be learned from ACPI
MCFG much easier than the value of the static symbol pcie_base.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8af2d27620970b5472470711c34105>