Editing OtherOS++

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1,344: Line 1,344:
=FreeBSD Development=
=FreeBSD Development=
Crossreference: [http://portal.gitbrew.org/wikibrew/PS3:FreeBSD_Development gitbrew.org::FreeBSD Development] <br />
Crossreference: [http://portal.gitbrew.org/wikibrew/PS3:FreeBSD_Development gitbrew.org::FreeBSD Development] <br />


'''Get in touch with me if you want to help with FreeBSD development because there are only 2 developers currently working on FreeBSD PS3 support :('''
'''Get in touch with me if you want to help with FreeBSD development because there are only 2 developers currently working on FreeBSD PS3 support :('''
Line 1,359: Line 1,358:
* Sound driver
* Sound driver
* Use CAM framework for HDD driver like in Blu-Ray driver
* Use CAM framework for HDD driver like in Blu-Ray driver
* FLASH/VFLASH drivers ('''work in progress''')
* FLASH/VFLASH drivers
* WiFi driver ('''work in progress''')
* WiFi driver ('''work in progress''')


Line 1,381: Line 1,380:
==WLAN==
==WLAN==


* Kernel modules: '''if_jpt.c''', '''jpt_sta.c''' and '''jpt_ap.c'''.
* Kernel module '''if_jpt.c'''.
* Use WLAN driver '''an''' as an example how to implement WLAN drivers which handle 802.11 protocol internally.
* Use WLAN driver '''an''' as an example how to implement WLAN drivers which handle 802.11 protocol internally.
* http://fxr.watson.org/fxr/source/dev/an/if_an.c
* http://fxr.watson.org/fxr/source/dev/an/if_an.c
* http://fxr.watson.org/fxr/source/net/if_tap.c
* http://fxr.watson.org/fxr/source/net/if_tap.c
* IOCTLs for scanning: '''IEEE80211_IOC_SCAN_REQ''' and '''IEEE80211_IOC_SCAN_RESULTS'''


==RSX==
==RSX==
Line 1,392: Line 1,390:
* FreeBSD DRM framework supports PCI devices only currently :-( Platform devices are NOT supported by FreeBSD's DRM framework.
* FreeBSD DRM framework supports PCI devices only currently :-( Platform devices are NOT supported by FreeBSD's DRM framework.
* No choice as to use kernel module with my own user space interface. Yeah, hate me kernel developers, i know, it's ugly but NVIDIA does it too ('''/dev/nvidia''', '''/dev/nvidiactl''' and '''nvidia.ko''').
* No choice as to use kernel module with my own user space interface. Yeah, hate me kernel developers, i know, it's ugly but NVIDIA does it too ('''/dev/nvidia''', '''/dev/nvidiactl''' and '''nvidia.ko''').
===DRM Device File===
* On FreeBSD, it's '''cdev'''.
* '''si_drv1''' points to '''struct drm_device'''
===Memory===
* There are several types of memory: VRAM (video RAM or memory on GPU), GART (system memory mapped into GPU address space) and CPU (system memory but NOT mapped into GPU address space)
* Implement memory heap managers
* Radeon driver is a good example how to manage VRAM and GART memory heaps. The user specifies memory type, alignment and size. The driver returns the offset of allocated memory region to user. The offset is the handle of allocated memory block.
* http://fxr.watson.org/fxr/source/dev/drm/radeon_mem.c
* Radeon driver supports memory types: VRAM and GART
* Nouveau driver supports memory types: VRAM, GART and CPU
* '''mmap syscall''' is used to map memory buffers into user-space. '''offset''' passed to mmap syscall is the handle of a memory map created previously with '''IOCTL DRM_IOCTL_ADDMAP'''. The handle is returned to user from IOCTL that creates the map.
* http://fxr.watson.org/fxr/source/dev/drm/drm_vm.c
* '''drmMap''' just calls mmap syscall and passes map handle as offset.
* Interesting discussion about DRM map handles: http://comments.gmane.org/gmane.comp.video.dri.devel/19657
* FreeBSD DRM framework uses '''alloc_unr''' to allocate unique map handles


==FLASH/VFLASH==
==FLASH/VFLASH==
Please note that all contributions to PS3 Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see PS3 Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)