Linux-magictrackpad is a project mainly written in ..., it's free.
kernel module for the Apple Wireless "Magic" Mouse & Trackpad
This driver adds the function of MagicTrackpad to Linux Kernel 2.6.35.7.